chore: update to Helm 4 #616
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: Lint and Test Prefect Worker Chart | |
| "on": | |
| pull_request_target: | |
| branches: | |
| - main | |
| permissions: | |
| # required to read from the repo | |
| contents: read | |
| jobs: | |
| lint_test: | |
| environment: ${{ | |
| (github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository) && 'Acceptance Tests (External)' || '' }} | |
| name: "lint-test (${{ matrix.kubernetes }})" | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| kubernetes: | |
| - "1.31.0" | |
| - "1.32.0" | |
| - "1.33.0" | |
| - "1.34.0" | |
| fail-fast: false | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: ${{ github.event.pull_request.head.repo.full_name }} | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| - name: Set up Helm | |
| uses: azure/setup-helm@v4 | |
| - name: Set up chart-testing | |
| uses: helm/chart-testing-action@v2.8.0 | |
| - name: Run chart-testing (lint) | |
| run: ct lint --config .github/linters/worker-ct.yaml | |
| - name: Create kind cluster | |
| uses: helm/kind-action@v1.13.0 | |
| with: | |
| node_image: "kindest/node:v${{ matrix.kubernetes }}" | |
| - name: Create API Secret for Worker Chart | |
| run: | | |
| kubectl create ns prefect | |
| kubectl create secret generic prefect-api-key --from-literal=key=${{ secrets.PREFECT_CLOUD_API_KEY }} -n prefect | |
| - name: Run chart-testing (install) | |
| run: | | |
| ct install --config .github/linters/worker-ct.yaml --helm-extra-set-args "--set=worker.config.workPool=repo-prefect-helm-gha-workflow-tests --set=worker.cloudApiConfig.accountId=${{ secrets.PREFECT_CLOUD_ACCOUNT_ID }} --set=worker.cloudApiConfig.workspaceId=${{ secrets.PREFECT_CLOUD_WORKSPACE_ID }} --set=worker.cloudApiConfig.cloudUrl=${{ secrets.PREFECT_CLOUD_API_URL }}" |