Repository navigation
41 lines (39 loc) · 1.95 KB
/
Copy pathci.yml
File metadata and controls
41 lines (39 loc) · 1.95 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
name: CI
on:
push:
branches: [main, dev, "feat/**", "feature/**", "renovate/**"]
pull_request:
jobs:
ci:
# Renovate's branches run on push, before their PR exists: prCreation "not-pending" waits for
# this result (docs/09 §10). The pull_request run of the same PR would only repeat it.
if: github.event_name != 'pull_request' || !startsWith(github.head_ref, 'renovate/')
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 build:types && node scripts/build-npm.mjs && node e2e/verify-bundler.mjs # the packed tarball taken in by Vite (build, dev server): MapLibre's worker has to come along
- 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@v7
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.