Repository navigation
118 lines (98 loc) · 2.89 KB
/
Copy pathpull-request.yml
File metadata and controls
118 lines (98 loc) · 2.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
name: Pull Request Check
on:
pull_request:
branches:
- main
workflow_dispatch:
permissions:
contents: read
concurrency:
group: pull-request-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
# Reuse the production deploy's exhaustive D1 partition instead of running the
# full D1 suite serially before every other check. The final verify job keeps
# the stable branch-protection check name and fails unless every slice passes.
jobs:
frontend:
runs-on: ubuntu-latest
timeout-minutes: 12
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Set up Node
uses: actions/setup-node@v7
with:
node-version: 24
cache: npm
- name: Install locked dependencies
run: npm ci
- name: Verify scope classifier and production frontend
run: |
npm run actions:scope:test
npm run verify:frontend:production
backend:
runs-on: ubuntu-latest
timeout-minutes: 12
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Set up Node
uses: actions/setup-node@v7
with:
node-version: 24
cache: npm
- name: Install locked dependencies
run: npm ci
- name: Verify D1 core and reference clients
run: npm run test:d1:core && npm run orbit:test:clients
backend-publication:
runs-on: ubuntu-latest
timeout-minutes: 12
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Set up Node
uses: actions/setup-node@v7
with:
node-version: 24
cache: npm
- name: Install locked dependencies
run: npm ci
- name: Verify publication, renderer and style behavior
run: npm run test:d1:publication
backend-platform:
runs-on: ubuntu-latest
timeout-minutes: 12
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Set up Node
uses: actions/setup-node@v7
with:
node-version: 24
cache: npm
- name: Install locked dependencies
run: npm ci
- name: Verify dashboard, media and platform behavior
run: npm run test:d1:platform
verify:
needs:
- frontend
- backend
- backend-publication
- backend-platform
if: ${{ always() }}
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- name: Require every parallel verification slice
env:
FRONTEND_RESULT: ${{ needs.frontend.result }}
BACKEND_RESULT: ${{ needs.backend.result }}
PUBLICATION_RESULT: ${{ needs.backend-publication.result }}
PLATFORM_RESULT: ${{ needs.backend-platform.result }}
run: |
test "$FRONTEND_RESULT" = success
test "$BACKEND_RESULT" = success
test "$PUBLICATION_RESULT" = success
test "$PLATFORM_RESULT" = success