-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (49 loc) · 1.54 KB
/
Copy pathci.yml
File metadata and controls
53 lines (49 loc) · 1.54 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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
verify:
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
node-version: [22, 24]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Activate packageManager npm
run: |
corepack enable
corepack prepare npm@11.17.0 --activate
# setup-node's npm 10 stays on PATH; assert the pin via corepack npm.
test "$(corepack npm -v | cut -d. -f1)" -ge 11
- name: Site verify (build, typecheck, test, lint, format)
run: CORPOS_VERIFY_CLEAN=1 ./scripts/harness/verify.sh
adversarial:
runs-on: ubuntu-latest
timeout-minutes: 10
needs: verify
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: 22
cache: npm
- name: Activate packageManager npm
run: |
corepack enable
corepack prepare npm@11.17.0 --activate
test "$(corepack npm -v | cut -d. -f1)" -ge 11
- run: corepack npm ci --include=dev
- run: corepack npm run build
- name: Site adversarial
run: ./scripts/harness/adversarial.sh