-
Notifications
You must be signed in to change notification settings - Fork 107
43 lines (35 loc) · 1.24 KB
/
helm-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
name: Helm CI
on:
pull_request:
paths:
- "helm/**/*"
- ".github/workflows/helm-ci.yaml"
concurrency:
group: ${{github.workflow}}-${{github.head_ref}}
cancel-in-progress: true
env:
CI: true
jobs:
build_test:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
# The go install / version instructions are inside the Makefile, so we need to cache the Makefile.
key: ${{ runner.os }}-go-${{ hashFiles('router/go.sum') }}-makefile-${{ hashFiles('Makefile') }}
restore-keys: |
${{ runner.os }}-go-
- uses: ./.github/actions/go
- name: Install tools
run: go install github.com/norwoodj/helm-docs/cmd/helm-docs@v1.11.3
- name: Generate Helm docs
run: make docs
working-directory: ./helm
- name: Check if git is not dirty after generating files
if: (github.event_name == 'push' && !startsWith(github.ref, 'refs/heads/release-please--')) || (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'release-please--'))
run: git diff --no-ext-diff --exit-code ./helm