fix: Improve helm-test workflow
Set fetch-depth as zero instead of run unshallow step
Run helm test only for changes on charts
@@ -16,9 +16,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
-
- - name: Unshallow
- run: git fetch --prune --unshallow
+ with:
+ fetch-depth: "0"
- uses: actions/setup-python@2c3dd9e7e29afd70cc0950079bde6c979d1f69f9 # v4.3.1
with:
@@ -28,4 +27,8 @@ jobs:
uses: helm/chart-testing-action@afea100a513515fbd68b0e72a7bb0ae34cb62aec # v2.3.1
- name: Run chart-testing (lint)
- run: ct lint --target-branch=main --check-version-increment=false
+ run: |
+ if [[ $(ct list-changed --target-branch=main) ]];
+ then
+ ct lint --target-branch=main --check-version-increment=false
+ fi
