-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 1.16 KB
/
Copy pathci.yml
File metadata and controls
36 lines (32 loc) · 1.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
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm lint
- run: pnpm typecheck
- run: pnpm test:coverage
# These three ran nowhere for days after the src/ reorg moved their targets, so nothing
# noticed that test:integration and test:perf pointed at deleted paths and that the
# opossum harness required dist/compat/opossum.cjs. A suite that is never executed is
# indistinguishable from a suite that passes.
- run: pnpm test:paths
- run: pnpm test:perf
- run: pnpm test:compat
# The example is the first code most people read, so a broken one is worse
# than none. Nine seconds at 4x speed traverses all four provider phases —
# enough to prove it runs, not enough to slow the build.
- run: RESILIX_EXAMPLE_MS=9000 RESILIX_EXAMPLE_SPEED=4 pnpm example:gateway
- run: pnpm build
- run: pnpm check:package