Repository navigation
37 lines (35 loc) · 1.48 KB
/
Copy pathci.yml
File metadata and controls
37 lines (35 loc) · 1.48 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
name: CI
on:
push:
branches: [main, dev, "feat/**", "feature/**"]
pull_request:
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v7
with:
node-version: 24
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm typecheck
- run: pnpm test
- run: pnpm build
- run: pnpm build:check && (cd packages/check && pnpm pack) && node e2e/verify-check-tarball.mjs packages/check/map0-check-*.tgz # the map0-check tarball installs and probes a fixture WMS, offline
- run: pnpm exec playwright install --with-deps chromium
- run: pnpm smoke # component lifecycle + z-order in a real browser, on the BUILT bundle
- run: pnpm visual # the UI's states against the committed e2e/visual/linux screenshots (N9)
- name: Upload visual diffs
if: failure()
uses: actions/upload-artifact@v4
with:
name: visual-diffs
path: e2e/visual/.out/
if-no-files-found: ignore
- run: pnpm size # fails when the eager bundle outgrows its budget (N1)
- run: pnpm build:site # the deployed site — a broken site build must fail here, not on deploy
# The live-service E2E pass (e2e/verify-demos.mjs) stays local/manual: it
# drives real SDI services, so a red run would mean "someone else's server
# is down". Everything that can be made deterministic lives in pnpm smoke.