-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (36 loc) · 1.24 KB
/
pr-build-and-verify.yml
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
name: Build and Verify
on:
pull_request:
branches: ["main"]
types: [synchronize, labeled]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test-build:
name: Test Build
if: ${{ contains(github.event.pull_request.labels.*.name, 'ok-to-test') }}
uses: ./.github/workflows/test-build.yml
secrets: inherit
verify-build:
name: Verify Build
if: ${{ contains(github.event.pull_request.labels.*.name, 'ok-to-test') }}
uses: ./.github/workflows/verify-build.yml
secrets: inherit
validate-files-and-commits:
name: Validate Files and Commits
if: ${{ contains(github.event.pull_request.labels.*.name, 'ok-to-test') }}
uses: ./.github/workflows/validate-files-and-commits.yml
secrets: inherit
validate-code:
name: Validate Code
if: ${{ contains(github.event.pull_request.labels.*.name, 'ok-to-test') }}
uses: ./.github/workflows/validate-code.yml
secrets: inherit
generate-coverage:
needs: [test-build, verify-build, validate-files-and-commits, validate-code]
name: Generate Coverage Report
uses: ./.github/workflows/coverage-report.yml
with:
comment-diff: true