-
Notifications
You must be signed in to change notification settings - Fork 3
47 lines (45 loc) · 1.2 KB
/
electron-ci.yml
File metadata and controls
47 lines (45 loc) · 1.2 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
name: Electron App CI
on:
push:
paths:
- 'electron/**'
- '.github/workflows/electron-ci.yml'
pull_request:
paths:
- 'electron/**'
- '.github/workflows/electron-ci.yml'
jobs:
build-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
defaults:
run:
working-directory: electron
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm install
- name: Lint
run: npm run lint || true
- name: Run Jest unit tests
run: npm test
- name: Run Playwright E2E tests
run: npx playwright install --with-deps && npm run e2e
- name: Build Electron app
run: npm run build
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: electron-build-${{ matrix.os }}
path: electron/dist/
- name: Upload coverage (if any)
uses: actions/upload-artifact@v4
with:
name: coverage-${{ matrix.os }}
path: electron/coverage/