-
Notifications
You must be signed in to change notification settings - Fork 136
72 lines (62 loc) · 1.83 KB
/
Copy pathtests.yml
File metadata and controls
72 lines (62 loc) · 1.83 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Tests
on: push
env:
CI: 1
defaults:
run:
shell: bash
jobs:
main:
strategy:
matrix:
include:
# Different node version
- os: ubuntu-latest
node_version: latest
electron_version: latest
experimental: false
- os: ubuntu-latest
node_version: 14
electron_version: 41
nw_version: 0.81.0
experimental: true
# Different electron version
- 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 }}
timeout-minutes: 10
continue-on-error: ${{ matrix.experimental }}
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node_version }}
- run: |
if [ "${{ matrix.electron_version }}" != 'latest' ]; then
npm install -D electron@${{ matrix.electron_version }}
fi
if [ -n "${{ matrix.nw_version }}" ]; then
npm install -D nw@${{ matrix.nw_version }}
fi
npm install
# Workaround for broken electron@42 installer on modern Node.
# Remove this call when upgrading to electron 43+ and the
# upstream installer works again.
.github/scripts/install-electron.sh
- run: |
if [ "${RUNNER_OS}" = 'Linux' ]; then
xvfb-run --auto-servernum npm run test:full
else
npm run test:full
fi