-
Notifications
You must be signed in to change notification settings - Fork 0
91 lines (66 loc) · 2.16 KB
/
Copy pathci.yml
File metadata and controls
91 lines (66 loc) · 2.16 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
name: CI
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
quality:
name: Lint, test, validate, and build
runs-on: ubuntu-latest
timeout-minutes: 25
env:
CI: "true"
NEXT_TELEMETRY_DISABLED: "1"
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Use Node.js 24
uses: actions/setup-node@v6
with:
node-version: 24
cache: npm
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Type-check
run: npm run typecheck
- name: Run unit tests
run: npm run test
- name: Validate content data
run: npm run validate:data
- name: Enforce one public program per university
run: npm run check:program-coverage:strict
- name: Validate D1 migrations and database integrity
run: npm run validate:d1
- name: Validate pilot source manifests
run: npm run validate:manifests
- name: Validate scheduled maintenance capacity
run: npm run validate:maintenance
- name: Run ingestion Worker tests
run: npm run test:ingestion
- name: Run publisher Worker tests
run: npm run test:publisher
- name: Run release builder Worker tests
run: npm run test:release-builder
- name: Validate ingestion Worker bundle and bindings
run: npm run check:worker:ingestion
- name: Validate publisher Worker bundle and bindings
run: npm run check:worker:publisher
- name: Validate release builder Worker bundle and bindings
run: npm run check:worker:release-builder
- name: Validate Catalog API Worker bundle and bindings
run: npm run check:worker:catalog
- name: Build production application
run: npm run build
- name: Install Playwright Chromium
run: npx playwright install --with-deps chromium
- name: Run end-to-end tests against the production build
run: npm run test:e2e