-
Notifications
You must be signed in to change notification settings - Fork 2
87 lines (70 loc) · 1.88 KB
/
testing.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
---
name: testing
"on":
pull_request:
branches:
- master
permissions:
contents: read
jobs:
testing:
runs-on: ubuntu-latest
steps:
- name: Checkout source
id: source
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup gnupg
id: gnupg
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GNUPG_KEY }}
passphrase: ${{ secrets.GNUPG_PASSWORD }}
trust_level: 5
- name: Setup python
id: python
uses: actions/setup-python@v5
with:
python-version-file: .python-version
- name: Setup sops
uses: nhedger/setup-sops@v2
- name: Setup testing
id: setup
uses: helm/[email protected]
- name: Setup helm
id: helm
uses: azure/setup-helm@v4
- name: Helm plugins
id: plugins
run: |
helm plugin install https://github.com/jkroepke/helm-secrets
- name: Decrypt secrets
id: secrets
run: |
for FILE in $(find stable -iname \*.enc); do
helm secrets decrypt ${FILE} >| ${FILE%.enc}.yaml
echo >> ${FILE%.enc}.yaml
done
- name: Detect testing
id: detect
run: |
CHANGED=$(ct list-changed --config ct.yaml)
if [[ -n "${CHANGED}" ]]; then
echo "changed=true" >> "${GITHUB_OUTPUT}"
fi
- name: Run Linting
id: linting
if: steps.detect.outputs.changed == 'true'
run: |
ct lint --config ct.yaml
- name: Create kind
id: kind
if: steps.detect.outputs.changed == 'true'
uses: helm/[email protected]
- name: Run testing
id: testing
if: steps.detect.outputs.changed == 'true'
run: |
ct install --config ct.yaml
...