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:
parent
ff728d5f2b
commit
4ae8b4b0ac
1 changed files with 7 additions and 4 deletions
11
.github/workflows/helm-test.yaml
vendored
11
.github/workflows/helm-test.yaml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue