forked from keithah/multi-provider-code-review
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (27 loc) · 781 Bytes
/
Copy pathci.yml
File metadata and controls
30 lines (27 loc) · 781 Bytes
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
name: CI
on:
pull_request:
branches: [main, ts-rewrite]
push:
branches: [main, ts-rewrite]
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: npm ci
- run: npm run lint
- run: npm run typecheck
# Run tests with CI-optimized settings:
# --maxWorkers=2: Limit parallelism to reduce resource contention
# --detectOpenHandles surfaces lingering async resources
# Use per-test timeout and open-handle detection to avoid hangs
- run: npm run test -- --maxWorkers=2 --detectOpenHandles --testTimeout=20000
- run: npm run build