Unit Tests #791
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' . |