forked from cfpb/consumerfinance.gov
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 1.26 KB
/
helm_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
43
44
45
46
47
48
49
50
name: helmlint
on: pull_request
jobs:
lint-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
helmlint:
- 'helm/cfgov/**.yaml'
- 'helm/cfgov/templates/**.tpl'
- 'helm/overrides/**'
- name: Set up Helm
if: steps.filter.outputs.helmlint == 'true'
uses: azure/setup-helm@v1
with:
version: v3.9.2
- name: Install Python3
if: steps.filter.outputs.helmlint == 'true'
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Update Dependencies
if: steps.filter.outputs.helmlint == 'true'
run: |
helm dependency update ./helm/cfgov
- name: Set up chart-testing
if: steps.filter.outputs.helmlint == 'true'
uses: helm/[email protected]
- name: Run chart-testing (lint)
if: steps.filter.outputs.helmlint == 'true'
run: ct lint --config ct.yaml
- name: Helm template
if: steps.filter.outputs.helmlint == 'true'
run: |
helm template testtemplate helm/cfgov