-
-
Notifications
You must be signed in to change notification settings - Fork 106
47 lines (41 loc) · 1.19 KB
/
unit.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
name: Unit Tests
on:
push:
branches:
- master
pull_request:
types:
- opened
- synchronize
schedule:
- cron: "0 1 * * *"
workflow_dispatch:
jobs:
helm-unittest:
runs-on: ubuntu-22.04
# strategy:
# matrix:
# Relevant tools installed by default on ubuntu 20.04:
# - helm 3.8.0
# - jq 1.6
# - kind 0.11.1
# - kubectl 1.23.3
# - minikube 1.25.1
# - python 3.8.10
# - yamllint 1.26.3
# - yq 4.19.1
# see: https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-Readme.md
steps:
- uses: actions/checkout@v2
- name: Install helm-unittest
# We should periodically check to see if another fork has taken over maintenance,
# as the de-facto "best" fork has changed several times over the years.
run: |
helm plugin install https://github.com/helm-unittest/helm-unittest.git --version v0.5.1
- name: Install chart dependencies
run: |
helm dependency update
- name: Run helm-unittest
# by default looks for tests/*_test.yaml
run: |
helm unittest --color -f 'tests/unit/*_test.yaml' .