-
Notifications
You must be signed in to change notification settings - Fork 4
65 lines (62 loc) · 2.05 KB
/
chart-testing.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
56
57
58
59
60
61
62
63
64
65
name: Helm Charts CI
on:
pull_request:
paths:
- "deploy/charts/**"
- ".github/workflows/chart-testing.yaml"
- ".github/workflows/setup_environment/action.yaml"
jobs:
test_list_changed:
name: Test (list changed)
runs-on: ubuntu-latest
outputs:
changed: ${{ steps.list_changed.outputs.changed }}
steps:
- name: checkout
uses: actions/checkout@v4
# used to fetch all history for all branches and tags
with:
fetch-depth: 0
- name: setup_environment
uses: ./.github/workflows/setup_environment
- name: Run chart-testing (list-changed)
id: list_changed
run: |
changed=$(ct list-changed --config chart-testing.yaml)
echo "changed=true" >> $GITHUB_OUTPUT
test_lint:
name: Test (lint)
runs-on: ubuntu-latest
needs: test_list_changed
steps:
- name: checkout
uses: actions/checkout@v4
# used to fetch all history for all branches and tags
with:
fetch-depth: 0
- name: setup_environment
uses: ./.github/workflows/setup_environment
- name: Run chart-testing (lint)
run: ct lint --config chart-testing.yaml
if: needs.test_list_changed.outputs.changed == 'true'
test_install:
name: Test (install)
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
needs: test_list_changed
steps:
- name: checkout
uses: actions/checkout@v4
# used to fetch all history for all branches and tags
with:
fetch-depth: 0
- name: setup_environment
uses: ./.github/workflows/setup_environment
- uses: debianmaster/actions-k3s@master
id: k3s
with:
version: 'latest'
- name: Run chart-testing (install)
run: ct install --config chart-testing.yaml --helm-extra-set-args '--set=exporter.tls.enabled=false --set=auth0.domain=${{ secrets.TEST_AUTH0_DOMAIN }} --set=auth0.clientId=${{ secrets.TEST_AUTH0_CLIENT_ID }} --set=auth0.clientSecret=${{ secrets.TEST_AUTH0_CLIENT_SECRET }}'