-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (45 loc) · 1.24 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: Lint and Test Charts
on:
pull_request:
paths:
- 'charts/**'
jobs:
path-filter:
runs-on: ubuntu-latest
if: ${{ !github.event.pull_request.draft }}
outputs:
charts: ${{ steps.filter.outputs.charts }}
steps:
- name: Checks-out repository
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- name: Check updated files paths
uses: dorny/paths-filter@v3
id: filter
with:
filters: |
charts:
- 'charts/**'
lint-chart:
if: ${{ needs.path-filter.outputs.charts == 'true' }}
runs-on: ubuntu-latest
needs:
- path-filter
steps:
- name: Checkout
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- name: Run chart-testing (lint)
uses: helm/chart-testing-action@main
with:
command: lint
config: .github/ct.yaml
lint-docs:
if: ${{ needs.path-filter.outputs.charts == 'true' }}
runs-on: ubuntu-latest
needs:
- path-filter
- lint-chart
steps:
- name: Checkout
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- name: Run helm-docs
run: .github/helm-docs.sh