-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 1.01 KB
/
Copy pathci.yml
File metadata and controls
44 lines (35 loc) · 1.01 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
name: CI
# Typecheck + unit tests on every push and PR. These run without launching a
# browser (the scraper's pure helpers and the diff logic are what's covered),
# so CI is fast and deterministic.
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch: {}
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [18, 20, 22]
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Set up Node ${{ matrix.node-version }}
uses: actions/setup-node@v5
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Install dependencies
# Skip the postinstall Chromium download — CI only runs browser-free
# typecheck + unit tests.
run: npm ci --ignore-scripts
- name: Typecheck
run: npm run typecheck
- name: Unit tests
run: npm test
- name: Build (verify the bundle compiles)
run: npm run build