-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (42 loc) · 1.35 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
47
48
49
name: linting
on: [push]
jobs:
chart-testing:
name: Chart testing
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
- name: Set up Helm
uses: azure/setup-helm@v4
- name: Set up Python
uses: actions/setup-python@v5
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: Read Kubernetes version from /kubernetes_version
run: "grep KUBERNETES_VERSION kubernetes_version >> $GITHUB_ENV"
- name: kubeconform
uses: docker://ghcr.io/yannh/kubeconform:latest-alpine
with:
entrypoint: /kubeconform
args: >
-kubernetes-version ${{ env.KUBERNETES_VERSION }}
-schema-location default
-schema-location
"https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/{{.Group}}/{{.ResourceKind}}_{{.ResourceAPIVersion}}.json"
-summary
helm-dist