-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (40 loc) · 1.19 KB
/
ci.yaml
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
name: linting
on: [push]
jobs:
chart-testing:
name: Chart testing
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
- name: Set up Helm
uses: azure/setup-helm@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Set up chart-testing
uses: helm/[email protected]
- name: Run chart-testing (lint)
run: ct lint --config ct.yaml
- name: Helm template
run: |
mkdir helm-dist
for c in $(ls charts)
do
helm template "${c}" "charts/${c}" --output-dir helm-dist
done
- name: kubeconform
uses: docker://ghcr.io/yannh/kubeconform:v0.5.0
with:
entrypoint: /kubeconform
args: >
-kubernetes-version 1.23.0
-schema-location default
-schema-location
"https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/{{.Group}}/{{.ResourceKind}}_{{.ResourceAPIVersion}}.json"
-summary
helm-dist