-
Notifications
You must be signed in to change notification settings - Fork 475
55 lines (47 loc) · 1.45 KB
/
charts--run-tests.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
49
50
51
52
53
54
55
name: "test charts"
on:
pull_request:
branches:
- main
paths:
- "charts/**"
jobs:
lint_and_install:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Helm
uses: azure/[email protected]
with:
version: v3.13.3
- name: Install chart-testing
uses: helm/[email protected]
with:
version: v3.10.1
- name: List Changed Charts (chart-testing)
id: list-changed
run: |
CHANGED=$(ct list-changed --config ct-config.yaml)
if [[ -n "$CHANGED" ]]; then
echo "::set-output name=CHANGED::true"
fi
- name: Lint Charts (chart-testing)
if: ${{ steps.list-changed.outputs.CHANGED == 'true' }}
run: |
ct lint --config ct-config.yaml --check-version-increment=false
- name: Create kind Cluster
uses: helm/kind-action@v1
if: ${{ steps.list-changed.outputs.CHANGED == 'true' }}
timeout-minutes: 5
with:
version: v0.22.0
kubectl_version: v1.27.13
node_image: kindest/node:v1.27.11@sha256:681253009e68069b8e01aad36a1e0fa8cf18bb0ab3e5c4069b2e65cafdd70843
wait: 300s
- name: Install Charts (chart-testing)
if: ${{ steps.list-changed.outputs.CHANGED == 'true' }}
run: |
ct install --config ct-config.yaml