Skip to content

Commit db67a01

Browse files
authored
* update ci Signed-off-by: André Bauer <monotek23@gmail.com> * set ct.yaml path Signed-off-by: André Bauer <monotek23@gmail.com>
1 parent db5b735 commit db67a01

File tree

1 file changed

+22
-17
lines changed

1 file changed

+22
-17
lines changed

.github/workflows/lint-test.yaml

+22-17
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,28 @@ jobs:
88
steps:
99
- name: Checkout
1010
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
1811
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
2231
- 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'
2634
- 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

0 commit comments

Comments
 (0)