Skip to content

Add Helm template rendering step to CI workflow #6

Add Helm template rendering step to CI workflow

Add Helm template rendering step to CI workflow #6

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Harden runner
uses: step-security/harden-runner@v2
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@v7
- name: Validate YAML files
run: |
find .github argocd catalog helm techdocs -name '*.yaml' -o -name '*.yml' | while read -r file; do
echo " $file"
yq '.' "$file" > /dev/null
done
- name: Render Helm charts
run: |
for chart in helm/*/; do
echo "Rendering $chart..."
helm template test "$chart" > /dev/null
done
- name: Run shellcheck on scripts
run: |
echo "Running shellcheck on scripts/..."
find scripts -name '*.sh' | while read -r file; do
echo " $file"
shellcheck "$file"
done
- name: Verify no changes in .github/
run: |
if [ -n "$(git status --porcelain .github/)" ]; then
echo "::error::Unexpected changes detected in .github/ after CI steps:"
git diff .github/
exit 1
fi
echo "No changes in .github/ — OK"