diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index b193ea6..3095d10 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -3,6 +3,10 @@ name: Continuous integration on: push: + branches: + - master + tags: + - '*' pull_request: env: @@ -15,6 +19,13 @@ jobs: timeout-minutes: 20 if: "!startsWith(github.event.head_commit.message, '[skip ci] ')" + strategy: + fail-fast: true + matrix: + helm: + - latest + - 3.5.1 + steps: - uses: actions/checkout@v3 with: @@ -34,11 +45,14 @@ jobs: - name: Install helm uses: azure/setup-helm@v1 + with: + version: ${{ matrix.helm }} - run: helm dependency update . - run: helm lint . - run: helm lint --values=tests/values.yaml . - run: helm template --namespace=default --values=tests/values.yaml custom . > tests/actual.yaml - run: diff --ignore-trailing-space tests/actual.yaml tests/expected.yaml + if: matrix.helm == 'master' - name: Setup k3s/k3d run: c2cciutils-k8s-install