-
Notifications
You must be signed in to change notification settings - Fork 162
47 lines (39 loc) · 1.21 KB
/
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
# yamllint disable rule:document-start
# https://docs.github.com/actions
name: Test
on:
workflow_call:
inputs:
action-matrix:
required: false
default: '["install"]'
type: string
description: Matrix of actions to run
jobs:
ct:
name: Run chart-testing
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
action: ${{ fromJSON(inputs.action-matrix) }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Helm
uses: azure/[email protected]
- uses: actions/setup-python@v5
if: startsWith(matrix.action, 'lint')
with:
python-version: 3.x
- name: Set up chart-testing
uses: helm/[email protected]
- name: Create kind cluster
uses: helm/[email protected]
if: contains(matrix.action, 'install')
- name: Run chart-testing (${{ matrix.action }})
run: ct ${{ matrix.action }} --config config.yaml --debug --helm-extra-set-args="$CT_HELM_EXTRA_SET_ARGS"
env:
CT_HELM_EXTRA_SET_ARGS: --set=host=${{ secrets.NETBOX_URL }} --set=auth.apiToken=${{ secrets.NETBOX_TOKEN }}