Add --recipe-pack-group flag to rad env create/update --preview #3825
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # yaml-language-server: $schema=https://www.schemastore.org/github-workflow.json | |
| --- | |
| name: Unit Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - release/* | |
| pull_request: | |
| branches: | |
| - main | |
| - features/* | |
| - release/* | |
| # Revalidate the combined changes when a PR is queued in the merge queue. | |
| # Scoped to main only so the release branch flow is never affected. | |
| merge_group: | |
| branches: | |
| - main | |
| # This workflow can run on forks for testing. | |
| # Uncomment the line below and push to your fork's main branch: (git push <remote fork> HEAD:main) | |
| # workflow_dispatch: | |
| permissions: {} | |
| concurrency: | |
| group: ${{ format('{0}-{1}-{2}-{3}-{4}', github.workflow, github.event_name, github.event.pull_request.number || github.ref, github.base_ref || null, github.head_ref || null) }} | |
| cancel-in-progress: true | |
| jobs: | |
| changes: | |
| name: Changes | |
| uses: ./.github/workflows/__changes.yml | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| unit-tests: | |
| name: Run Unit Tests | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 30 | |
| needs: [changes] | |
| if: needs.changes.outputs.only_changed != 'true' | |
| permissions: | |
| contents: read | |
| checks: write | |
| pull-requests: write | |
| steps: | |
| - name: Checkout Radius repository | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| fetch-depth: 1 | |
| persist-credentials: false | |
| - name: Setup Go | |
| uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 | |
| with: | |
| go-version-file: go.mod | |
| cache-dependency-path: go.sum | |
| # Compiles and executes Go code — don't restore a cache a prior run could have poisoned. | |
| cache: false | |
| - name: Setup Python | |
| uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version-file: .python-version | |
| # Helm is required because `make test` depends on the `test-helm` target, | |
| # which installs the helm-unittest plugin and runs the chart unit tests. | |
| - name: Install helm | |
| # Version pinned in build/tools.yaml (HELM_VERSION). | |
| run: make install-helm | |
| - name: Run make test (unit tests) | |
| env: | |
| GOTESTSUM_OPTS: --junitfile ./dist/unit_test/results.xml | |
| GOTEST_OPTS: -race -coverprofile ./dist/unit_test/ut_coverage.out | |
| run: | | |
| mkdir -p ./dist/unit_test | |
| make test | |
| - name: Run make test-validate-cli (CLI integration tests) | |
| env: | |
| GOTESTSUM_OPTS: --junitfile ./dist/unit_test/cli_results.xml | |
| GOTEST_OPTS: -race -coverprofile ./dist/unit_test/cli_coverage.out | |
| run: | | |
| make test-validate-cli | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0 | |
| with: | |
| # This secret is unavailable for fork PRs; Codecov falls back to tokenless upload. | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| codecov_yml_path: ./.codecov.yml | |
| files: ./dist/unit_test/ut_coverage.out,./dist/unit_test/cli_coverage.out | |
| fail_ci_if_error: false | |
| verbose: true | |
| # Process test results and publish annotations. Skipped on fork PRs because | |
| # the pull_request trigger does not grant checks: write to forks. | |
| - name: Process Unit Test Results | |
| uses: ./.github/actions/process-test-results | |
| if: always() && github.repository == 'radius-project/radius' | |
| with: | |
| test_group_name: Unit Tests | |
| artifact_name: unit_test_results | |
| result_directory: dist/unit_test/ |