13
13
options : --user 1001
14
14
steps :
15
15
- name : Checkout
16
- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
16
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
17
17
- name : Run ah lint
18
18
working-directory : ./charts
19
19
run : ah lint
@@ -22,40 +22,40 @@ jobs:
22
22
runs-on : ubuntu-latest
23
23
steps :
24
24
- name : Checkout
25
- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
25
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
26
26
with :
27
27
fetch-depth : 0
28
28
29
29
- name : Set up Helm
30
- uses : azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2 .0
30
+ uses : azure/setup-helm@b9e51907a09c216f16ebe8536097933489208112 # v4.3 .0
31
31
with :
32
32
version : v3.10.1 # Also update in publish.yaml
33
33
34
34
- name : Set up python
35
- uses : actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1
35
+ uses : actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
36
36
with :
37
37
python-version : 3.9
38
38
39
39
- name : Setup Chart Linting
40
40
id : lint
41
- uses : helm/chart-testing-action@e6669bcd63d7cb57cb4380c33043eebe5d111992 # v2.6.1
41
+ uses : helm/chart-testing-action@0d28d3144d3a25ea2cc349d6e59901c4ff469b3b # v2.7.0
42
42
with :
43
43
# Note: Also update in scripts/lint.sh
44
- version : v3.10 .0
44
+ version : v3.11 .0
45
45
46
46
- name : List changed charts
47
47
id : list-changed
48
48
run : |
49
49
## If executed with debug this won't work anymore.
50
- changed=$(ct --config ./.github/configs/ct-lint.yaml list-changed)
50
+ changed=$(ct --config ./.github/configs/ct-lint.yaml --target-branch ${{ github.base_ref }} list-changed)
51
51
charts=$(echo "$changed" | tr '\n' ' ' | xargs)
52
52
if [[ -n "$changed" ]]; then
53
53
echo "changed=true" >> $GITHUB_OUTPUT
54
54
echo "changed_charts=$charts" >> $GITHUB_OUTPUT
55
55
fi
56
56
57
57
- name : Run chart-testing (lint)
58
- run : ct lint --debug --config ./.github/configs/ct-lint.yaml --lint-conf ./.github/configs/lintconf.yaml
58
+ run : ct lint --debug --config ./.github/configs/ct-lint.yaml --target-branch ${{ github.base_ref }} -- lint-conf ./.github/configs/lintconf.yaml
59
59
60
60
- name : Run docs-testing (helm-docs)
61
61
id : helm-docs
@@ -70,20 +70,11 @@ jobs:
70
70
fi
71
71
72
72
- name : Create kind cluster
73
- uses : helm/kind-action@0025e74a8c7512023d06dc019c617aa3cf561fde # v1.10 .0
73
+ uses : helm/kind-action@a1b0e391336a6ee6713a0583f8c6240d70863de3 # v1.12 .0
74
74
if : steps.list-changed.outputs.changed == 'true'
75
75
with :
76
76
config : .github/configs/kind-config.yaml
77
77
78
- - name : Deploy latest ArgoCD CRDs when testing ArgoCD extensions
79
- if : |
80
- contains(steps.list-changed.outputs.changed_charts, 'argocd-image-updater') ||
81
- contains(steps.list-changed.outputs.changed_charts, 'argocd-apps')
82
- run : |
83
- helm repo add dandydeveloper https://dandydeveloper.github.io/charts/
84
- helm dependency build charts/argo-cd/
85
- helm template charts/argo-cd/ --set server.extensions.enabled=true -s templates/crds/* | kubectl apply -f -
86
-
87
78
- name : Skip HPA tests of ArgoCD
88
79
if : contains(steps.list-changed.outputs.changed_charts, 'argo-cd')
89
80
run : |
98
89
helm install redis bitnami/redis --wait --namespace redis --set auth.password=argocd --set architecture=standalone
99
90
100
91
- name : Run chart-testing (install)
101
- run : ct install --config ./.github/configs/ct-install.yaml
92
+ run : ct install --config ./.github/configs/ct-install.yaml --target-branch ${{ github.base_ref }}
102
93
if : steps.list-changed.outputs.changed == 'true'
0 commit comments