-
Notifications
You must be signed in to change notification settings - Fork 26
49 lines (43 loc) · 1.35 KB
/
test.yml
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
name: Run tests
on: [push]
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: ['18.x']
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm build:code
- run: pnpm test:ci
- uses: codecov/codecov-action@v4
test-e2e:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: ['18.x']
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm build:code
- run: |
sudo chown root examples/basic-react/node_modules/electron/dist/chrome-sandbox \
&& sudo chmod 4755 examples/basic-react/node_modules/electron/dist/chrome-sandbox \
&& sudo chown root examples/basic-vanilla-esm/node_modules/electron/dist/chrome-sandbox \
&& sudo chmod 4755 examples/basic-vanilla-esm/node_modules/electron/dist/chrome-sandbox
- run: xvfb-run --auto-servernum -- pnpm test:e2e