-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
81 lines (70 loc) · 1.89 KB
/
Copy pathci.yml
File metadata and controls
81 lines (70 loc) · 1.89 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
name: CI
on:
push:
branches:
- main
- 'releases/**'
tags-ignore:
- '**'
pull_request:
merge_group:
schedule:
- cron: '33 17 * * 0'
workflow_dispatch:
permissions: {}
concurrency:
# Cancels in-progress runs only for pull requests
group: ci-group-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
Build:
uses: ./.github/workflows/_build.yml
secrets: inherit
permissions:
contents: read
Cross-Version:
uses: ./.github/workflows/_cross-version.yml
secrets: inherit
permissions:
contents: read
Reproducibility:
uses: ./.github/workflows/_reproducible-build.yml
secrets: inherit
permissions:
contents: read
CodeQL:
uses: ./.github/workflows/_codeql.yml
secrets: inherit
permissions:
contents: read
security-events: write
zizmor:
name: GitHub Actions Security Analysis
uses: ./.github/workflows/_zizmor-analysis.yml
secrets: inherit
permissions:
contents: read
security-events: write
Publish:
if: github.event_name == 'push' && github.repository == 'junit-team/junit-framework'
needs: [ Build ]
uses: ./.github/workflows/_publish.yml
secrets: inherit
permissions:
actions: write # to trigger documentation deployment workflow
attestations: write # for build provenance attestation
id-token: write # for build provenance attestation
status:
name: Status
needs: [ Build, Cross-Version, Reproducibility, CodeQL, zizmor, Publish ]
if: always()
runs-on: ubuntu-slim
steps:
- name: Determine overall status
env:
STATUS: ${{ join(needs.*.result, ',') }}
FAILURE: ${{ contains(join(needs.*.result, ','), 'failure') || contains(join(needs.*.result, ','), 'cancelled') }}
run: |
if [ "$FAILURE" = "true" ]; then
exit 1
fi