-
Notifications
You must be signed in to change notification settings - Fork 3
35 lines (28 loc) · 873 Bytes
/
lint_helm.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
name: Lint Helm Charts
on:
workflow_dispatch:
push:
branches: [ ]
pull_request: []
jobs:
lint-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Helm
uses: azure/setup-helm@v2
with:
version: v3.4.0
- uses: actions/setup-python@v4
with:
python-version: 3.7
- name: Helm Chart Testing
uses: helm/[email protected]
- name: Run chart-testing (lint)
run: |
CHANGED=`ct list-changed --config .github/lintconfig.yaml;`;
LINTCONF=$CT_CONFIG_DIR/lintconf.yaml;
for c in $CHANGED; do echo "$c/Chart.yaml"; yamllint --config-file $LINTCONF $c/Chart.yaml; echo "$c/values.yaml"; yamllint --config-file $LINTCONF $c/values.yaml; done;