Skip to content

Commit e3160db

Browse files
committed
Trying out helm lint
1 parent 7c4b08e commit e3160db

File tree

1 file changed

+6
-40
lines changed

1 file changed

+6
-40
lines changed
Lines changed: 6 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,15 @@
1-
name: Lint and Test Charts
1+
name: Lint
22

3-
on:
3+
on:
44
pull_request:
55
branches: ["main"]
66
push:
77
branches: ["main", "cicd"]
88

99
jobs:
10-
lint-test:
10+
unittest:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- name: Checkout
14-
uses: actions/checkout@v3
15-
with:
16-
fetch-depth: 0
17-
18-
- name: Set up Helm
19-
uses: azure/setup-helm@v4.2.0
20-
with:
21-
version: v3.17.0
22-
23-
- uses: actions/setup-python@v5.3.0
24-
with:
25-
python-version: '3.x'
26-
check-latest: true
27-
28-
- name: Set up chart-testing
29-
uses: helm/chart-testing-action@v2.7.0
30-
31-
- name: Run chart-testing (list-changed)
32-
id: list-changed
33-
run: |
34-
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }})
35-
if [[ -n "$changed" ]]; then
36-
echo "changed=true" >> "$GITHUB_OUTPUT"
37-
fi
38-
39-
- name: Run chart-testing (lint)
40-
if: steps.list-changed.outputs.changed == 'true'
41-
run: ct lint --target-branch ${{ github.event.repository.default_branch }}
42-
43-
- name: Create kind cluster
44-
if: steps.list-changed.outputs.changed == 'true'
45-
uses: helm/kind-action@v1.12.0
46-
47-
- name: Run chart-testing (install)
48-
if: steps.list-changed.outputs.changed == 'true'
49-
run: ct install --target-branch ${{ github.event.repository.default_branch }}
13+
- uses: actions/checkout@v3
14+
- uses: d3adb5/helm-unittest-action@v2
15+
- run: helm lint graylog

0 commit comments

Comments
 (0)