Repository navigation
59 lines (46 loc) · 1.5 KB
/
Copy pathpr.yml
File metadata and controls
59 lines (46 loc) · 1.5 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
name: PR checks
on:
pull_request:
branches:
- main
permissions:
contents: read
concurrency:
group: "pr-${{ github.event.pull_request.number }}"
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-24.04
# Fast gate (no browser-contract suite — that stays on deploy); bounded so
# a hang fails fast instead of sitting out the platform default.
timeout-minutes: 15
defaults:
run:
working-directory: ./website
steps:
- name: Checkout
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- name: Setup Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 24
cache: npm
cache-dependency-path: ./website/package-lock.json
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
- name: Run typecheck
run: npm run typecheck
- name: Audit responsive diagrams
run: npm run audit:responsive-diagrams
- name: Audit context regions
run: npm run audit:context-regions
# Website tests run first without the provider SDK; the CLI's static imports
# require scripts/ dependencies even for its credential-free lint command.
- name: Install audiobook CLI dependencies
run: npm ci --prefix ../scripts
- name: Lint audiobook dialogue
run: npm run audio:dialogue:lint
- name: Run linter
run: npm run lint