Skip to content

Commit 592b80d

Browse files
committed
CI: add desktop smoke workflow
1 parent e90c316 commit 592b80d

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
workflow_dispatch:
9+
10+
jobs:
11+
desktop-smoke:
12+
runs-on: ubuntu-latest
13+
defaults:
14+
run:
15+
working-directory: desktop
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Setup Node
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: 20
24+
cache: npm
25+
cache-dependency-path: desktop/package-lock.json
26+
27+
- name: Install deps
28+
run: npm ci
29+
30+
- name: Install Playwright (chromium)
31+
run: npx playwright install --with-deps chromium
32+
33+
- name: Smoke tests (chromium)
34+
run: npm run test:smoke -- --project=chromium --reporter=line -- tests/smoke.spec.ts
35+
36+
- name: Upload bundle report (if present)
37+
if: always()
38+
uses: actions/upload-artifact@v4
39+
with:
40+
name: bundle-report
41+
path: desktop/dist/renderer/bundle-report.html
42+
if-no-files-found: ignore

0 commit comments

Comments
 (0)