charts/.github/workflows/pr-validate.yaml
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs e8e2d25873
ci: Clean up validation flow
Signed-off-by: Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs <me@bjw-s.dev>
2022-02-04 21:04:23 +01:00

48 lines
1.2 KiB
YAML

name: "Pull Request: Validate"
on:
pull_request:
branches:
- master
concurrency:
group: ${{ github.head_ref }}-pr-validate
# cancel-in-progress: true
jobs:
pr-metadata:
uses: k8s-at-home/charts/.github/workflows/pr-metadata.yaml@master
pre-commit-check:
uses: k8s-at-home/charts/.github/workflows/pre-commit-check.yaml@master
needs:
- pr-metadata
with:
modifiedFiles: ${{ needs.pr-metadata.outputs.addedOrModifiedFiles }}
charts-changelog:
uses: k8s-at-home/charts/.github/workflows/charts-changelog.yaml@master
needs:
- pr-metadata
- pre-commit-check
with:
isRenovatePR: ${{ needs.pr-metadata.outputs.isRenovatePR }}
modifiedCharts: ${{ needs.pr-metadata.outputs.addedOrModifiedCharts }}
charts-lint:
uses: k8s-at-home/charts/.github/workflows/charts-lint.yaml@master
needs:
- pr-metadata
- charts-changelog
with:
checkoutCommit: ${{ needs.charts-changelog.outputs.commitHash }}
charts-test:
uses: k8s-at-home/charts/.github/workflows/charts-test.yaml@master
needs:
- pr-metadata
- charts-changelog
- charts-lint
with:
checkoutCommit: ${{ needs.charts-changelog.outputs.commitHash }}