56 lines
1.5 KiB
YAML
56 lines
1.5 KiB
YAML
name: "Pull Request: Validate"
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'charts/**' # only execute if we have helm chart changes
|
|
branches:
|
|
- main
|
|
types:
|
|
- opened
|
|
- edited
|
|
- reopened
|
|
- ready_for_review
|
|
- synchronize
|
|
|
|
concurrency:
|
|
group: ${{ github.head_ref }}-pr-validate
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
pr-metadata:
|
|
uses: S7evinK/dendrite/.github/workflows/helm-pr-metadata.yaml@main
|
|
|
|
pre-commit-check:
|
|
uses: S7evinK/dendrite/.github/workflows/helm-pre-commit-check.yaml@main
|
|
needs:
|
|
- pr-metadata
|
|
with:
|
|
modifiedFiles: ${{ needs.pr-metadata.outputs.addedOrModifiedFiles }}
|
|
|
|
charts-changelog:
|
|
uses: S7evinK/dendrite/.github/workflows/helm-charts-changelog.yaml@main
|
|
needs:
|
|
- pr-metadata
|
|
- pre-commit-check
|
|
with:
|
|
isRenovatePR: ${{ needs.pr-metadata.outputs.isRenovatePR }}
|
|
modifiedCharts: ${{ needs.pr-metadata.outputs.addedOrModifiedCharts }}
|
|
|
|
charts-lint:
|
|
uses: S7evinK/dendrite/.github/workflows/helm-charts-lint.yaml@main
|
|
needs:
|
|
- pr-metadata
|
|
- charts-changelog
|
|
with:
|
|
checkoutCommit: ${{ needs.charts-changelog.outputs.commitHash }}
|
|
chartChangesDetected: ${{ needs.pr-metadata.outputs.addedOrModified }}
|
|
|
|
charts-test:
|
|
uses: S7evinK/dendrite/.github/workflows/helm-charts-test.yaml@main
|
|
needs:
|
|
- pr-metadata
|
|
- charts-changelog
|
|
with:
|
|
checkoutCommit: ${{ needs.charts-changelog.outputs.commitHash }}
|
|
chartChangesDetected: ${{ needs.pr-metadata.outputs.addedOrModified }} |