CI: add desktop smoke workflow #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| desktop-smoke: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: desktop | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| cache-dependency-path: desktop/package-lock.json | |
| - name: Install deps | |
| run: npm ci | |
| - name: Install Playwright (chromium) | |
| run: npx playwright install --with-deps chromium | |
| - name: Smoke tests (chromium) | |
| run: npm run test:smoke -- --project=chromium --reporter=line -- tests/smoke.spec.ts | |
| - name: Upload bundle report (if present) | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: bundle-report | |
| path: desktop/dist/renderer/bundle-report.html | |
| if-no-files-found: ignore |