-
-
Notifications
You must be signed in to change notification settings - Fork 120
47 lines (41 loc) · 1.11 KB
/
pr-validate.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: "Pull Request: Validate"
on:
pull_request:
types:
- opened
- 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.commonLibraryUpdated=='true') &&
'["library/common-test"]'
) || needs.pr-metadata.outputs.chartsToInstall
}}