File tree 1 file changed +51
-0
lines changed
1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Lint and Test Charts
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ pull_request :
8
+ branches :
9
+ - master
10
+
11
+ jobs :
12
+ lint-test :
13
+ runs-on : ubuntu-20.04
14
+ steps :
15
+ - name : Checkout
16
+ uses : actions/checkout@v3
17
+ with :
18
+ fetch-depth : 0
19
+
20
+ - name : Set up Helm
21
+
22
+ with :
23
+ version : v3.17.0
24
+
25
+
26
+ with :
27
+ python-version : ' 3.x'
28
+ check-latest : true
29
+
30
+ - name : Set up chart-testing
31
+
32
+
33
+ - name : Run chart-testing (list-changed)
34
+ id : list-changed
35
+ run : |
36
+ changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }})
37
+ if [[ -n "$changed" ]]; then
38
+ echo "changed=true" >> "$GITHUB_OUTPUT"
39
+ fi
40
+
41
+ - name : Run chart-testing (lint)
42
+ if : steps.list-changed.outputs.changed == 'true'
43
+ run : ct lint --target-branch ${{ github.event.repository.default_branch }}
44
+
45
+ # - name: create kind cluster
46
+ # if: steps.list-changed.outputs.changed == 'true'
47
+
48
+ #
49
+ # - name: run chart-testing (install)
50
+ # if: steps.list-changed.outputs.changed == 'true'
51
+ # run: ct install --target-branch ${{ github.event.repository.default_branch }}
You can’t perform that action at this time.
0 commit comments