docs: clarify that HelmChart version field is only for chart repository #8541
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
| name: test | |
| on: | |
| push: | |
| branches: | |
| - master | |
| tags: | |
| - 'v*' | |
| pull_request: | |
| branches: | |
| - master | |
| - 'release-v*' | |
| - 'feat/*' | |
| env: | |
| GO_VERSION: 1.25.0 | |
| NODE_VERSION: 18.12.0 | |
| jobs: | |
| list-go-modules: | |
| runs-on: ubuntu-24.04 | |
| outputs: | |
| modules: ${{ steps.list-go-modules.outputs.modules }} | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: List go modules | |
| id: list-go-modules | |
| run: | | |
| echo "modules=$(find . -name go.mod -exec dirname {} \; | sort | jq -R -s -c 'split("\n") | map(select(length > 0))')" >> $GITHUB_OUTPUT | |
| go: | |
| runs-on: oracle-vm-8cpu-32gb-x86-64 | |
| needs: list-go-modules | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| module: ${{ fromJSON(needs.list-go-modules.outputs.modules) }} | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - uses: actions/setup-go@v3 | |
| with: | |
| go-version: ${{ env.GO_VERSION }} | |
| cache: true | |
| - name: Run unit tests | |
| run: make test/go COVERAGE=true MODULES=${{ matrix.module }} | |
| - name: make flag | |
| id: make-flag | |
| run: | | |
| echo "flags=$(echo ${{ matrix.module }} | tr '/' '-')" >> $GITHUB_OUTPUT | |
| - name: Upload coverage reports to Codecov | |
| uses: codecov/codecov-action@v3 | |
| with: | |
| flags: ${{ steps.make-flag.outputs.flags }} | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| # This job is used to check if the go testing is completed successfully | |
| # It is used to set as required check for the branch protection rules | |
| go-test-completed: | |
| runs-on: ubuntu-24.04 | |
| if: always() | |
| needs: go | |
| steps: | |
| - name: Check if all go test jobs succeeded | |
| # if jobs in the 'go' job matrix failed or were cancelled, this job will fail | |
| # otherwise this job is marked as successful because all steps are skipped | |
| run: exit 1 | |
| if: >- | |
| ${{ | |
| contains(needs.*.result, 'failure') | |
| || contains(needs.*.result, 'cancelled') | |
| }} | |
| web: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| - name: Get yarn cache directory path | |
| id: yarn-cache-dir-path | |
| run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT | |
| - uses: actions/cache@v4 | |
| id: yarn-cache | |
| with: | |
| path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
| key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-yarn- | |
| - name: Update web dependencies | |
| run: make update/web-deps | |
| - name: Run unit tests | |
| run: make test/web | |
| integration: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - uses: actions/setup-go@v3 | |
| with: | |
| go-version: ${{ env.GO_VERSION }} | |
| cache: true | |
| - name: Run integration tests | |
| run: make test/integration |