forked from kubeshop/helm-charts
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.32 KB
/
lint.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
## Reference: https://github.com/helm/chart-testing-action
name: Lint
on:
pull_request:
branches:
- develop
permissions:
contents: write
jobs:
chart-test:
name: Chart lint
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
# with:
# ref: ${{ github.event.pull_request.head.ref }}
- name: Set up Helm
uses: azure/setup-helm@v4
with:
version: v3.14.1
- uses: actions/setup-python@v4
with:
python-version: '3.10'
check-latest: true
- name: Setup Chart Linting
uses: helm/[email protected]
with:
version: v3.7.1
# - name: List changed charts
# id: list-changed
# run: |
# ## If executed with debug this won't work anymore.
# changed=$(ct --target-branch develop --config ./.github/configs/ct-lint.yaml list-changed)
# charts=$(echo "$changed" | tr '\n' ' ' | xargs)
# if [[ -n "$changed" ]]; then
# echo "changed=true" >> $GITHUB_OUTPUT
# echo "changed_charts=$charts" >> $GITHUB_OUTPUT
# fi
- name: Run chart-testing (lint)
run: ct lint --debug --target-branch develop --config ./.github/configs/ct-lint.yaml --lint-conf ./.github/configs/lintconf.yaml