no sensor #26
Workflow file for this run
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: Helm Tests | |
on: | |
workflow_dispatch: | |
pull_request: | |
paths: | |
- 'charts/**' | |
branches: | |
- main | |
jobs: | |
helm-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Helm | |
uses: azure/setup-helm@v3 | |
- name: Install helm unittest plugin | |
run: | | |
helm plugin install https://github.com/quintush/helm-unittest | |
- name: Run tests for modified charts | |
run: | | |
# Get list of modified charts | |
# Run tests for each modified chart | |
for chart in charts/*; do | |
cd $chart | |
if [ -e "run-tests.sh" ]; then | |
echo "Testing chart: $chart" | |
helm dependency update | |
./run-tests.sh || exit 1 | |
cd ../../ | |
fi | |
done |