-
Notifications
You must be signed in to change notification settings - Fork 4
34 lines (31 loc) · 1.09 KB
/
Copy pathci.yml
File metadata and controls
34 lines (31 loc) · 1.09 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
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: oven-sh/setup-bun@v2
- run: bun install --frozen-lockfile
- run: bun run check
- run: bun run test
- run: bun run build
# Guards the published artifact: SSR frameworks (Vite SSR, Next)
# load externalized deps through Node's resolver, so the build
# must import cleanly outside a bundler.
- name: Verify core dist resolves under Node ESM
run: node --input-type=module -e "await import('./packages/core/dist/index.js')"
# Browser tests for the interaction choreography (drag, dismiss, tap-away,
# focus) that the happy-dom unit tests can't reach. Separate job so a
# browser-engine failure is isolated from the fast unit/type/build gate.
e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: oven-sh/setup-bun@v2
- run: bun install --frozen-lockfile
- run: bunx playwright install --with-deps chromium firefox webkit
- run: bun run test:e2e