-
-
Notifications
You must be signed in to change notification settings - Fork 15
36 lines (30 loc) · 885 Bytes
/
Copy pathci.yml
File metadata and controls
36 lines (30 loc) · 885 Bytes
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
name: CI
on:
pull_request:
push:
permissions:
contents: read
jobs:
test-gate:
uses: ./.github/workflows/test-gate.yml
scoring-v2-gate:
uses: ./.github/workflows/scoring-v2.yml
# Branch rulesets require check contexts named exactly "test" and "scoring-v2".
# Reusable workflows report nested names (e.g. test / test (3.13)); these gate jobs
# surface the names develop/main protection expects.
test:
name: test
runs-on: ubuntu-latest
needs: test-gate
if: ${{ always() && !cancelled() }}
steps:
- name: Require test gate
run: test "${{ needs.test-gate.result }}" = "success"
scoring-v2:
name: scoring-v2
runs-on: ubuntu-latest
needs: scoring-v2-gate
if: ${{ always() && !cancelled() }}
steps:
- name: Require scoring-v2 gate
run: test "${{ needs.scoring-v2-gate.result }}" = "success"