-
Notifications
You must be signed in to change notification settings - Fork 4
62 lines (51 loc) · 1.51 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# yamllint --format github .github/workflows/test.yml
---
name: helm_test
# We test the helm chart including an apply following the steps described in
# https://github.com/helm/chart-testing-action
# We don't test documentation-only commits.
on:
push:
branches: master
paths-ignore:
- "**/*.md"
pull_request:
branches: master
paths-ignore:
- "**/*.md"
jobs:
lint:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: '0' # to see origin/master
- name: Configure Git
run: | # not zipkinci as this is for testing
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Set up Helm
uses: azure/setup-helm@v3
with:
version: v3.12.1
- name: Install python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Set up chart-testing
uses: helm/[email protected]
- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed)
if [[ -n "$changed" ]]; then
echo "changed=true" >> $GITHUB_OUTPUT
fi
- name: Run chart-testing (lint)
run: ct lint
- name: Create kind cluster
uses: helm/[email protected]
if: steps.list-changed.outputs.changed == 'true'
- name: Run chart-testing (install)
run: ct install