helm-charts/.github/workflows/pr-validate.yaml
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs 567ba7650a
ci: Move actions to separate repo (#29)
* ci: Move actions to separate repo
* ci: Remove dependency on main branch
2022-08-12 11:28:14 +02:00

63 lines
1.5 KiB
YAML

name: "Pull Request: Validate"
on:
pull_request:
branches:
- main
- development
types:
- opened
- edited
- reopened
- ready_for_review
- synchronize
concurrency:
group: ${{ github.head_ref }}-pr-validate
cancel-in-progress: true
jobs:
pr-metadata:
uses: ./.github/workflows/pr-metadata.yaml
pre-commit-check:
uses: ./.github/workflows/pre-commit-check.yaml
needs:
- pr-metadata
with:
modifiedFiles: ${{ needs.pr-metadata.outputs.addedOrModifiedFiles }}
charts-lint:
uses: ./.github/workflows/charts-lint.yaml
needs:
- pr-metadata
with:
checkoutCommit: ${{ github.sha }}
chartsToLint: ${{ needs.pr-metadata.outputs.chartsToLint }}
isRenovatePR: ${{ needs.pr-metadata.outputs.isRenovatePR }}
charts-test:
uses: ./.github/workflows/charts-test.yaml
needs:
- pr-metadata
with:
checkoutCommit: ${{ github.sha }}
chartsToTest: ${{ needs.pr-metadata.outputs.chartsToInstall }}
library-charts-test:
uses: ./.github/workflows/charts-test.yaml
needs:
- pr-metadata
with:
checkoutCommit: ${{ github.sha }}
chartsToTest: |-
${{
(
contains(fromJSON(needs.pr-metadata.outputs.addedOrModifiedCharts), 'library/common') &&
'["other/app-template"]'
) || '[]'
}}
overrideDeps: |-
[
{"name": "common", "repository": "file://../../library/common", "version": "*"}
]