chore: Declare compatibility with rancher 2.10 #1408
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- 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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- 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 |