-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (45 loc) · 1.35 KB
/
Copy pathci.yml
File metadata and controls
52 lines (45 loc) · 1.35 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
52
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
desktop-tests:
runs-on: ubuntu-latest
defaults:
run:
working-directory: desktop
strategy:
fail-fast: false
matrix:
suite:
- name: smoke
command: npm run test:smoke -- --project=chromium --reporter=line -- tests/smoke.spec.ts
- name: vault
command: npm run test:smoke -- --project=chromium --reporter=line -- tests/vault.spec.ts
- name: ao
command: npm run test:smoke -- --project=chromium --reporter=line -- tests/ao.spec.ts
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: Run ${{ matrix.suite.name }} tests
run: ${{ matrix.suite.command }}
- 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