Commit db67a01 1 parent db5b735 commit db67a01 Copy full SHA for db67a01
File tree 1 file changed +22
-17
lines changed
1 file changed +22
-17
lines changed Original file line number Diff line number Diff line change 8
8
steps :
9
9
- name : Checkout
10
10
uses : actions/checkout@v2
11
-
12
- - name : Fetch history
13
- run : git fetch --prune --unshallow
14
-
15
- - name : Run chart-testing (lint)
16
- id : lint
17
- uses : helm/chart-testing-action@v1.0.0
18
11
with :
19
- command : lint
20
- config : ct.yaml
21
-
12
+ fetch-depth : 0
13
+ - name : Set up Helm
14
+ uses : azure/setup-helm@v1
15
+ with :
16
+ version : v3.5.0
17
+ - uses : actions/setup-python@v2
18
+ with :
19
+ python-version : 3.7
20
+ - name : Set up chart-testing
21
+ uses : helm/chart-testing-action@v2.0.1
22
+ - name : Run chart-testing (list-changed)
23
+ id : list-changed
24
+ run : |
25
+ changed=$(ct list-changed --config ct.yaml)
26
+ if [[ -n "$changed" ]]; then
27
+ echo "::set-output name=changed::true"
28
+ fi
29
+ - name : Run chart-testing (lint)
30
+ run : ct lint --config ct.yaml
22
31
- name : Create kind cluster
23
- uses : helm/kind-action@v1.0.0
24
- if : steps.lint.outputs.changed == 'true'
25
-
32
+ uses : helm/kind-action@v1.1.0
33
+ if : steps.list-changed.outputs.changed == 'true'
26
34
- name : Run chart-testing (install)
27
- uses : helm/chart-testing-action@v1.0.0
28
- with :
29
- command : install
30
- config : ct.yaml
35
+ run : ct install --config ct.yaml
You can’t perform that action at this time.
0 commit comments