Allows for adding labels to the generated deployments, services, and jobs #34
Workflow file for this run
This file contains 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 Operator Chart | |
"on": | |
pull_request: | |
branches: | |
- main | |
paths: | |
- deploy/charts/** | |
# Do not grant jobs any permissions by default | |
permissions: {} | |
jobs: | |
lint_test: | |
name: "lint-test (${{ matrix.kubernetes }})" | |
runs-on: ubuntu-latest | |
permissions: | |
# required to read from the repo | |
contents: read | |
strategy: | |
matrix: | |
kubernetes: | |
- "1.26.0" | |
- "1.27.0" | |
- "1.28.0" | |
- "1.29.0" | |
fail-fast: false | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Set up Helm | |
uses: azure/setup-helm@v4 | |
- name: Set up chart-testing | |
uses: helm/[email protected] | |
- name: Run chart-testing (lint) | |
run: ct lint --config .github/linters/operator-ct.yaml | |
- name: Create kind cluster | |
uses: helm/[email protected] | |
with: | |
node_image: "kindest/node:v${{ matrix.kubernetes }}" | |
- name: Run chart-testing (install) | |
run: ct install --config .github/linters/operator-ct.yaml |