-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (43 loc) · 1.17 KB
/
ci.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
name: linting
on: [push]
jobs:
chart-testing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
show-progress: false
- uses: azure/setup-helm@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Set up chart-testing
uses: helm/chart-testing-action@v2
with:
version: v3.8.0
- name: Run chart-testing (lint)
run: ct lint --config ct.yml
- name: Helm template
run: |
mkdir helm-dist
for c in charts/*; do
helm template "$(basename "$c")" "$c" --output-dir helm-dist
done
shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
show-progress: false
- uses: ludeeus/action-shellcheck@00cae500b08a931fb5698e11e79bfbd38e612a38 # 2.0.0
env:
SHELLCHECK_OPTS: -xP SCRIPTDIR
yamllint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
show-progress: false
- run: yamllint --version && yamllint -f github .