1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00

fix: Improve helm-test workflow (#5640)

- Set fetch-depth as zero instead of run unshallow step
- Run helm test only for changes on charts

Signed-off-by: cuttingedge1109 <cuttingedge1109@users.noreply.github.com>

Signed-off-by: cuttingedge1109 <cuttingedge1109@users.noreply.github.com>
Co-authored-by: cuttingedge1109 <cuttingedge1109@users.noreply.github.com>
This commit is contained in:
cuttingedge1109 2022-12-09 17:10:16 +01:00 committed by GitHub
parent ff728d5f2b
commit 4ae8b4b0ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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