Skip to content

Commit 57b817a

Browse files
authored
don't run ct test when nothing has changed (#314)
Signed-off-by: nschad <[email protected]>
1 parent a4df7c3 commit 57b817a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/lint-test.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ jobs:
2929
with:
3030
version: v3.4.0
3131

32+
- name: Run chart-testing (list-changed)
33+
id: list-changed
34+
run: |
35+
changed=$(ct list-changed)
36+
if [[ -n "$changed" ]]; then
37+
echo "::set-output name=changed::true"
38+
fi
39+
3240
- name: Run chart-testing (lint)
3341
run: ct lint --config ct.yaml
3442

@@ -39,8 +47,11 @@ jobs:
3947
4048
- name: Create kind cluster
4149
uses: helm/[email protected]
50+
if: steps.list-changed.outputs.changed == 'true'
4251

4352
- name: Run chart-testing (install)
4453
run: |
4554
kubectl create namespace cortex
4655
ct install --config ct.yaml --namespace cortex
56+
if: steps.list-changed.outputs.changed == 'true'
57+

0 commit comments

Comments
 (0)