ci: Update PR validation

This commit is contained in:
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs 2022-03-29 10:45:22 +02:00
parent 6ae2682e0b
commit dd22935f93
No known key found for this signature in database
GPG Key ID: BC5E2BD907F9A8EC
3 changed files with 10 additions and 0 deletions

View File

@ -6,6 +6,9 @@ on:
checkoutCommit:
required: true
type: string
chartChangesDetected:
required: true
type: string
jobs:
lint:
@ -34,6 +37,7 @@ jobs:
- name: Collect changes
id: list-changed
if: inputs.chartChangesDetected == 'true'
run: |
EXCLUDED=$(yq eval -o=json '.excluded-charts // []' .github/ct-lint.yaml)
CHARTS=$(ct list-changed --config .github/ct-lint.yaml)

View File

@ -6,6 +6,9 @@ on:
checkoutCommit:
required: true
type: string
chartChangesDetected:
required: true
type: string
jobs:
unit-test:
@ -63,6 +66,7 @@ jobs:
- name: Run chart-testing (list-changed)
id: list-changed
if: inputs.chartChangesDetected == 'true'
run: |
EXCLUDED=$(yq eval -o=json '.excluded-charts // []' .github/ct-install.yaml)
CHARTS=$(ct list-changed --config .github/ct-install.yaml)

View File

@ -36,6 +36,7 @@ jobs:
- charts-changelog
with:
checkoutCommit: ${{ needs.charts-changelog.outputs.commitHash }}
chartChangesDetected: ${{ needs.pr-metadata.outputs.addedOrModified }}
charts-test:
uses: k8s-at-home/charts/.github/workflows/charts-test.yaml@master
@ -45,3 +46,4 @@ jobs:
- charts-lint
with:
checkoutCommit: ${{ needs.charts-changelog.outputs.commitHash }}
chartChangesDetected: ${{ needs.pr-metadata.outputs.addedOrModified }}