-
Notifications
You must be signed in to change notification settings - Fork 0
86 lines (75 loc) · 2.2 KB
/
Copy pathpr-build-and-verify.yml
File metadata and controls
86 lines (75 loc) · 2.2 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
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
permissions: read-all
jobs:
check-pr-status:
name: Check PR status
uses: nubificus/vaccel/.github/workflows/check-pr-status.yml@main
secrets: inherit
test-build:
needs: check-pr-status
name: Test Build
if: needs.check-pr-status.outputs.expects-checks == 'true'
uses: nubificus/vaccel/.github/workflows/test-build.yml@main
with:
options: ''
valgrind: false
secrets: inherit
# verify-build:
# needs: check-pr-status
# name: Verify Build
# if: needs.check-pr-status.outputs.expects-checks == 'true'
# uses: nubificus/vaccel/.github/workflows/verify-build.yml@main
# with:
# options: ''
# valgrind: false
# skip-examples: true
# secrets: inherit
validate-files-and-commits:
needs: check-pr-status
name: Validate Files and Commits
if: needs.check-pr-status.outputs.expects-checks == 'true'
uses: nubificus/vaccel/.github/workflows/validate-files-and-commits.yml@main
secrets: inherit
validate-code:
needs: check-pr-status
name: Validate Code
if: needs.check-pr-status.outputs.expects-checks == 'true'
uses: ./.github/workflows/validate-code.yml
secrets: inherit
# generate-coverage:
# needs:
# - check-pr-status
# - test-build
# - verify-build
# - validate-files-and-commits
# - validate-code
# name: Generate Coverage Report
# uses: ./.github/workflows/coverage-report.yml
# with:
# comment-diff: true
# Dummy job for setting required checks
jobs-completed:
needs:
- check-pr-status
- test-build
- validate-files-and-commits
- validate-code
name: Jobs Completed
if: >-
always() &&
(needs.check-pr-status.outputs.is-approved == 'true' ||
(needs.check-pr-status.outputs.expects-checks == 'true' &&
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled')))
runs-on: base-2204-amd64
steps:
- run: exit 0