Skip to content

Commit

Permalink
Test all charts when no chart changed
Browse files Browse the repository at this point in the history
  • Loading branch information
WyriHaximus committed Jun 12, 2023
1 parent 5dd6f5a commit cba2ff3
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/helm-charts-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,17 @@ jobs:
id: postgresql
run: |
echo ::set-output name=url::$(echo "postgresql://postgres:${{ steps.postgresql_password.outputs.password }}@postgresql-helm-charts-${{ github.run_number }}.default/postgres")
- name: Add WyriHaximusNet repo
run: helm repo add WyriHaximusNet https://helm.wyrihaximus.net/
- name: Install Chart Tester
uses: helm/[email protected]
- name: Run List Changed
id: list-changed
run: |
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }})
if [[ -n "$changed" ]]; then
echo "changed=true" >> "$GITHUB_OUTPUT"
fi
- name: Prepare library charts
run: |
cp charts/commons/library-ci/*.yaml charts/commons/templates/
Expand All @@ -74,9 +85,9 @@ jobs:
sed -i 's/library/application/g' charts/horizontal-pod-autoscalers/Chart.yaml
rm -Rf charts/commento
rm -Rf charts/commentoplusplus
- name: Add WyriHaximusNet repo
run: helm repo add WyriHaximusNet https://helm.wyrihaximus.net/
- name: Install Chart Tester
uses: helm/[email protected]
- name: Test charts
- name: Test Changed Charts
if: steps.list-changed.outputs.changed == 'true'
run: ct install
- name: Test All Charts
if: steps.list-changed.outputs.changed != 'true'
run: ct install --all

0 comments on commit cba2ff3

Please sign in to comment.