Skip to content

Commit

Permalink
run parallel pre-validation
Browse files Browse the repository at this point in the history
  • Loading branch information
logica0419 committed Dec 29, 2023
1 parent 48986ee commit f3d7b6f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/helm-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,15 @@ jobs:
uses: helm/[email protected]
- name: Run pre-validation scripts
run: |
array=()
for dir in $(find . -name Chart.yaml | rev | cut -f2- -d'/' | rev); do
if [ -f "$dir"/ci/pre-validation.sh ]; then
sh "$dir"/ci/pre-validation.sh
nohup sh "$dir"/ci/pre-validation.sh &
array+=($!)
fi
done
wait ${array[@]}
- name: Run chart-testing (install)
run: |
CHARTS="$(find . -name Chart.yaml | rev | cut -f2- -d'/' | tr '\n' ',' | rev | cut -b2-)"
ct lint --target-branch ${{ github.event.repository.default_branch }} --charts "$CHARTS" --chart-dirs "$CHARTS"
ct install --target-branch ${{ github.event.repository.default_branch }} --charts "$CHARTS" --chart-dirs "$CHARTS"

0 comments on commit f3d7b6f

Please sign in to comment.