-
Notifications
You must be signed in to change notification settings - Fork 103
55 lines (46 loc) · 1.42 KB
/
helm-test.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
51
52
53
54
55
name: Test
on:
push:
branches: [ "main" ]
pull_request:
workflow_call:
inputs:
filter_regex_include:
description: this sets the scope of the super linter
default: "charts/beyla/"
required: false
type: string
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
CT_CONFIGFILE: "${{ github.workspace }}/.github/configs/ct.yml"
jobs:
lint-helm-chart:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # required for chart-testing to work
lfs: true
- name: Regenerate docs
run: |
docker run --rm \
-v "$(pwd)/deployments/helm:/helm-docs" \
-u "$(id -u)" \
jnorwood/helm-docs
if ! git diff --exit-code; then
echo "Helm chart documentation is not up to date. Please run 'helm-docs' and commit changes!" >&2
exit 1
fi
- name: Set up Linting with chart-testing
uses: helm/[email protected]
- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed --config "${CT_CONFIGFILE}")
if [[ -n "$changed" ]]; then
echo "::set-output name=changed::true"
fi
- name: Linting with chart-testing
run: ct lint --config "${CT_CONFIGFILE}"