From acf51310c2d57b0a57e304cd0ed47874042648a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Wed, 30 Mar 2022 20:09:07 +0200 Subject: [PATCH] Test with used Helm version --- .github/workflows/main.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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