-
Notifications
You must be signed in to change notification settings - Fork 24
50 lines (47 loc) · 1.1 KB
/
ci.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
44
45
46
47
48
49
50
name: CI
on: [push, pull_request]
permissions: {}
jobs:
trigger:
if: |
github.event_name == 'push' ||
(
github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
)
runs-on: ubuntu-22.04
steps:
- name: CI Trigger
run: echo "Triggering CI"
build:
needs: trigger
uses: ./.github/workflows/build.yml
linters:
needs: trigger
uses: ./.github/workflows/linters.yml
tests:
needs: trigger
uses: ./.github/workflows/tests.yml
fuzzing:
needs: trigger
uses: ./.github/workflows/fuzzing.yml
benchmarks:
needs: trigger
uses: ./.github/workflows/benchmarks.yml
nagger:
needs: trigger
uses: ./.github/workflows/nagger.yml
check-all-green:
needs:
- build
- linters
- tests
- fuzzing
- benchmarks
- nagger
runs-on: ubuntu-22.04
steps:
- name: Collect statuses from all jobs
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
with:
jobs: ${{ toJSON(needs) }}