-
Notifications
You must be signed in to change notification settings - Fork 132
57 lines (49 loc) · 1.34 KB
/
Copy pathtesting.yaml
File metadata and controls
57 lines (49 loc) · 1.34 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
53
54
55
56
57
name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
tests-unit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 24
cache: npm
- name: Install dependencies
run: npm ci
- name: Run unit tests
run: npm run test:unit
test-e2e:
timeout-minutes: 20
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci
- name: Install Electron binary
run: node node_modules/electron/install.js
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install Playwright Browsers
run: npx playwright install --with-deps chromium
- name: Create Executable
run: npm run package
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run Playwright tests
run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" npm run test:e2e
- name: Upload artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: playwright-report
path: playwright-report/
retention-days: 7