Skip to content

chore(deps): update pnpm to v10.33.0 - autoclosed #815

chore(deps): update pnpm to v10.33.0 - autoclosed

chore(deps): update pnpm to v10.33.0 - autoclosed #815

Workflow file for this run

name: Helm Unit testing
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- "**"
jobs:
find_charts:
name: Find Charts
runs-on: ubuntu-latest
outputs:
charts: ${{ steps.find_charts.outputs.charts }}
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Find charts
id: find_charts
run: |
sudo apt install jq --yes
echo "Finding all folders containing Chart.yaml files..."
cd charts
ls
find . -name Chart.yaml -exec dirname {} \; | sed 's|^\./||' | grep -vE '^(charts|docs|tests|common)' > charts.txt || true
if [ -s charts.txt ]; then
echo "Json list of charts found:"
charts=$(jq -R -s -c 'split("\n")[:-1]' charts.txt)
echo "Found charts: $charts"
else
echo "No charts found."
exit 1;
fi
echo "::set-output name=charts::$charts"
test:
name: Run Helm Unit Tests
needs: find_charts
runs-on: ubuntu-latest
container: ghcr.io/interledger/builders/chartvalidator:v0.5
strategy:
matrix:
chart: ${{ fromJson(needs.find_charts.outputs.charts) }}
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Run Helm Unit Tests
run: |
echo "Running unit tests for chart: ${{ matrix.chart }}"
cd charts
ls
helm plugin install https://github.com/helm-unittest/helm-unittest.git
helm unittest ${{ matrix.chart }}
- name: Run Kubeconform Validation
run: |
cd charts
pwd
ls
helm template ${{ matrix.chart }} | kubeconform -strict -summary -ignore-missing-schemas