@@ -14,34 +14,27 @@ jobs:
14
14
- name : Checkout
15
15
uses : actions/checkout@v2
16
16
with :
17
- path : harbor
17
+ fetch-depth : 0
18
18
19
19
- name : Set up Helm
20
20
uses : azure/setup-helm@v1
21
21
with :
22
22
version : ' ${{ matrix.helm_version }}'
23
23
24
- - name : Helm version
25
- run :
26
- helm version -c
27
-
28
- - name : Run lint
29
- continue-on-error : ${{ startsWith(matrix.helm_version, '2.') }}
30
- working-directory : ./harbor
31
- run :
32
- helm lint .
24
+ - uses : actions/setup-python@v2
25
+ with :
26
+ python-version : 3.7
33
27
34
- - name : Update dependency
35
- working-directory : ./harbor
36
- run :
37
- helm dependency update .
28
+ - name : Set up chart-testing
29
+ uses : helm/chart-testing-action@v2.3.0
38
30
39
- - name : Run template for ingress expose
40
- working-directory : ./harbor
41
- run :
42
- helm template --set "expose.type=ingress" --output-dir $(mktemp -d -t output-XXXXXXXXXX) .
31
+ - name : Run chart-testing (list-changed)
32
+ id : list-changed
33
+ run : |
34
+ changed=$(ct list-changed)
35
+ if [[ -n "$changed" ]]; then
36
+ echo "::set-output name=changed::true"
37
+ fi
43
38
44
- - name : Run template for nodePort expose
45
- working-directory : ./harbor
46
- run :
47
- helm template --set "expose.type=nodePort,expose.tls.auto.commonName=127.0.0.1" --output-dir $(mktemp -d -t output-XXXXXXXXXX) .
39
+ - name : Run chart-testing (lint)
40
+ run : ct lint --charts . --validate-maintainers=false --lint-conf=lintconf.yaml
0 commit comments