forked from k8up-io/k8up
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 1 KB
/
chart-lint.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
name: ChartLint
on:
pull_request:
# only run when there are chart changes
paths:
- 'charts/**'
- '!charts/charts.mk'
- '!charts/go*'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: Determine Go version from go.mod
run: echo "GO_VERSION=$(go mod edit -json | jq -r .Go)" >> $GITHUB_ENV
working-directory: ./charts
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Verify charts are upt-do-date
run: make chart-lint
template:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Render Helm charts
run: find charts -type f -name Chart.yaml -exec .github/render-charts.sh {} \;