Helm chart minor release (#561) #1391
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: CI | |
on: | |
push: | |
branches: | |
- "*" | |
tags: | |
- "v*" | |
pull_request: | |
branches: | |
- "*" | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
# Adapted from https://github.com/d3adb5/helm-unittest-action/ | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
- name: Install Helm | |
uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5 | |
- name: Install helm-unittest | |
run: helm plugin install https://github.com/helm-unittest/helm-unittest | |
- name: Set chart directories to test as environment variable | |
run: | | |
echo "CHARTS_TO_TEST=$(find . -type f -name 'Chart.yaml' -exec dirname {} \; | tr '\n' ' ')" >> $GITHUB_ENV | |
- name: Run unit tests | |
run: helm unittest --color ${{ env.CHARTS_TO_TEST }} | |
verify: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
- name: Check that the contents of common-values.yaml are included in values.yaml | |
run: | | |
make check-common-values | |
- name: Run shellcheck in the shell scripts | |
run: | | |
make shellcheck |