-
Notifications
You must be signed in to change notification settings - Fork 6
51 lines (48 loc) · 1.98 KB
/
Copy pathshowcase-smoke.yml
File metadata and controls
51 lines (48 loc) · 1.98 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
# Showcase Smoke — NON-BLOCKING. Drives the console (served by the backend at
# /_console) across every showcase nav surface, asserting render health
# (no crash / no leaked dev placeholder / charts draw). Manual + nightly only;
# it never gates PRs. Promote to a PR gate once it has proven stable here.
name: Showcase Smoke
on:
workflow_dispatch:
schedule:
- cron: '0 7 * * *' # 07:00 UTC nightly
permissions:
contents: read
jobs:
smoke:
name: Showcase nav-surface smoke
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- uses: actions/checkout@v7
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v6
with:
node-version: 22
cache: pnpm
- run: pnpm install --frozen-lockfile
# The smoke's webServer runs `os serve --dev`, which loads the showcase
# config + its workspace runtime deps (CLI, connector-rest, …) from their
# built `dist/`. Build the whole dependency closure (excluding the
# showcase's own app build, which serve --dev doesn't need).
- run: pnpm turbo run build --filter=@objectstack/example-showcase^...
# The console SPA served at /_console is vendored by build-console.sh
# (shallow-clones objectui@.objectui-sha, builds @object-ui/console, copies
# dist → packages/console/dist). Without it serve --dev warns "Console dist
# not found" and the app shell never renders.
- name: Vendor the pinned Console SPA
run: bash scripts/build-console.sh
- name: Install Playwright Chromium
working-directory: examples/app-showcase
run: pnpm exec playwright install --with-deps chromium
- name: Run showcase smoke
working-directory: examples/app-showcase
run: pnpm test:smoke
- name: Upload report on failure
if: failure()
uses: actions/upload-artifact@v7
with:
name: showcase-smoke-report
path: examples/app-showcase/playwright-report/
retention-days: 7