Skip to content

Commit a078ea2

Browse files
committed
chore: try fixing electron install
1 parent 92b72ed commit a078ea2

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

.github/workflows/tests.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
name: Tests
22

3-
on:
4-
- pull_request
5-
- push
3+
on: push
64

75
env:
86
CI: 1
97

8+
defaults:
9+
run:
10+
shell: bash
11+
1012
jobs:
1113
main:
12-
defaults:
13-
run:
14-
shell: bash
15-
1614
strategy:
1715
matrix:
1816
include:
@@ -24,6 +22,7 @@ jobs:
2422
- os: ubuntu-latest
2523
node_version: 14
2624
electron_version: 41
25+
nw_version: 0.85.0
2726
experimental: true
2827

2928
# Different electron version
@@ -64,8 +63,12 @@ jobs:
6463
if [ "${{ matrix.electron_version }}" != 'latest' ]; then
6564
npm install -D electron@${{ matrix.electron_version }}
6665
fi
66+
if [ -n "${{ matrix.nw_version }}" ]; then
67+
npm install -D nw@${{ matrix.nw_version }}
68+
fi
6769
npm install
6870
node node_modules/electron/install.js
71+
test -f node_modules/electron/path.txt || { echo "ERROR: node_modules/electron/path.txt missing after install.js"; ls -la node_modules/electron/; exit 1; }
6972
7073
- run: |
7174
if [ "${RUNNER_OS}" = 'Linux' ]; then

0 commit comments

Comments
 (0)