-
Notifications
You must be signed in to change notification settings - Fork 868
57 lines (43 loc) · 1.43 KB
/
Copy pathci.yml
File metadata and controls
57 lines (43 loc) · 1.43 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
name: CI
on:
push:
branches: [master, dev]
pull_request:
branches: [master]
jobs:
build-and-test:
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 build
- run: pnpm test
# Boots the real `pnpm dev` stack and asserts UTA/Alice/Vite all spawn.
# Exists to catch cross-platform spawn regressions (e.g. `spawn tsx ENOENT`
# on Windows) that `pnpm test` can't see — esbuild transpiles, it never
# spawns the children. Runs on Windows (the at-risk OS) plus Ubuntu as a
# control: if Windows goes red while Ubuntu stays green, it's a real platform
# diff, not a harness bug. See scripts/guardian/smoke.ts.
dev-smoke:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
# Skip the Electron desktop shell — the smoke only needs UTA/Alice/UI,
# and this avoids a large electron download on the Windows runner.
- run: pnpm install --frozen-lockfile --filter='!@traderalice/desktop'
- run: pnpm test:smoke
timeout-minutes: 8