commit 7f95580e5ad68764fce413bca3bae802900aa2de parent dabc6e7774ab31abf6957133b7e7983e1b300c08 Author: MTRNord <mtrnord1@gmail.com> Date: Sat, 2 Mar 2024 19:48:35 +0100 The linter only works on pullrequests Diffstat:
| M | .github/workflows/testing.yml | | | 28 | +++++++++++----------------- |
1 file changed, 11 insertions(+), 17 deletions(-)
diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml @@ -1,31 +1,22 @@ name: Lint and Test Charts -on: - push: - branches: - - main - pull_request: - branches: - - main - workflow_dispatch: +on: pull_request jobs: lint-test: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Helm - uses: azure/setup-helm@v3 - with: - version: v3.12.1 + uses: azure/setup-helm@v4 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: - python-version: '3.10' + python-version: '3.11' check-latest: true - name: Set up chart-testing @@ -40,11 +31,13 @@ jobs: fi - name: Run chart-testing (lint) + if: steps.list-changed.outputs.changed == 'true' run: ct lint --target-branch ${{ github.event.repository.default_branch }} - name: Create kind cluster - uses: helm/kind-action@v1.8.0 + if: steps.list-changed.outputs.changed == 'true' + uses: helm/kind-action@v1.9.0 - name: Run chart-testing (install) - run: ct install --target-branch ${{ github.event.repository.default_branch }} - + if: steps.list-changed.outputs.changed == 'true' + run: ct install --target-branch ${{ github.event.repository.default_branch }} +\ No newline at end of file