-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test all charts when no chart changed
- Loading branch information
1 parent
0e9df45
commit f99ba16
Showing
1 changed file
with
16 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,6 +64,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/ | ||
|
@@ -79,9 +90,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 |