generated from cfpb/open-source-project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 974 Bytes
/
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
name: helmlint
on: pull_request
jobs:
lint-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
helmlint:
- 'charts/static-site/**.yaml'
- 'charts/static-site/templates/**.tpl'
- name: Set up Helm
if: steps.filter.outputs.helmlint == 'true'
uses: azure/setup-helm@v1
with:
version: v3.9.2
- 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 Test
if: steps.filter.outputs.helmlint == 'true'
run: |
helm template testtemplate charts/static-site