-
Notifications
You must be signed in to change notification settings - Fork 128
75 lines (63 loc) · 1.76 KB
/
tests.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Tests
on:
- pull_request
- push
env:
CI: 1
jobs:
main:
defaults:
run:
shell: bash
strategy:
matrix:
include:
# Different node version
- os: ubuntu-latest
node_version: latest
electron_version: latest
experimental: false
- os: ubuntu-latest
node_version: 16
electron_version: latest
experimental: false
- os: ubuntu-latest
node_version: 14
electron_version: latest
experimental: true
# Different electron version
- os: ubuntu-latest
node_version: latest
electron_version: 16
experimental: true
- os: ubuntu-latest
node_version: latest
electron_version: 13
experimental: true
# Different OS
- os: macos-latest
node_version: latest
electron_version: latest
experimental: true
- os: windows-latest
node_version: latest
electron_version: latest
experimental: true
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
- run: npm config set script-shell 'bash'
if: runner.os == 'Windows'
- run: npm install
- run: npm install -D electron@${{ matrix.electron_version }}
if: ${{ matrix.electron_version != 'latest' }}
- run: |
if [ "${RUNNER_OS}" = 'Linux' ]; then
xvfb-run --auto-servernum npm run test:full
else
npm run test:full
fi