-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Support up to Electron 8 #2862
Support up to Electron 8 #2862
Changes from 36 commits
f57f4b4
9c5aeb6
7f5b6bf
90e697d
e6b1a43
0661d3b
92b7ef0
1760a4c
ed1c343
97a903b
2bc2261
5fe05fa
80a5070
7368214
f3aaea6
18687aa
499e066
9642e7b
d95fc8a
9d01660
69ddf4c
2cc27f0
480890d
72ed801
138d277
165f68a
2eb370e
ed333ad
4da3d46
17cfbc0
a1db6da
818b048
9faff00
23927c8
7c35440
f1bdcea
78048c9
2e93037
c65aa3c
403a152
a7543a1
96f12b6
3e7526a
45801f7
99a6b2f
0ec38a7
d8bda5a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Electron Rebuild CI - Linux (x32 & x64) | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
electron: | ||
- 5 | ||
- 6 | ||
- 7 | ||
- 8 | ||
include: | ||
# includes a new variable for each electron (essentially a switch statement) | ||
- electron: 5 | ||
nodeVersion: 70 | ||
- electron: 6 | ||
nodeVersion: 73 | ||
- electron: 7 | ||
nodeVersion: 75 | ||
- electron: 8 | ||
nodeVersion: 76 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
os: ${{ matrix.os }} | ||
- name: Install packages | ||
run: npm install --unsafe-perm | ||
- name: Install electron-rebuild | ||
run: npm install --save-dev electron-rebuild@latest | ||
- name: Run on ${{ matrix.os }} - Electron v${{ matrix.electron }} (Node ${{ matrix.nodeVersion }}) | ||
run: ./node_modules/.bin/electron-rebuild -v=${{ matrix.electron }} -w node-sass | ||
- uses: actions/upload-artifact@v1 | ||
with: | ||
name: linux_x64_${{ matrix.nodeVersion }}_binding.node | ||
path: build/Release/binding.node | ||
# npm test failing on pre-existing master issues, commenting out | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What the pre-existing failures? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you see this run
I'll add the data from a local run tomorrow (in GMT here) as I think the error was different on that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK, the other issue I could think that it's running into is that the If it really is a CLI issue with Electron, but Electron won't use the test, maybe there is a way to just skip the test on Electron, but run the rest. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
6084 passing (31s)
753 pending
2 failing
1) cli node-sass sass/ --output css/ should not error if output directory is a symlink:
Error: EEXIST: file already exists, mkdir 'C:\Users\Glenn\Documents\GitHub\node-sass\test\fixtures\input-directory\css'
at Object.mkdirSync (fs.js:860:3)
at Context.<anonymous> (test\cli.js:582:10)
at processImmediate (internal/timers.js:456:21)
2) cli node-sass --follow --output output-dir input-dir should compile with the --follow option:
Error: EEXIST: file already exists, mkdir 'C:\Users\Glenn\Documents\GitHub\node-sass\test\fixtures\follow\input-dir'
at Object.mkdirSync (fs.js:860:3)
at Context.<anonymous> (test\cli.js:623:10)
at processImmediate (internal/timers.js:456:21)
npm ERR! Test failed. See above for more details. The above is the result when I run There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
TBH, I don't know why I'm running The test is running on the system Node but still using the binary it downloaded from GitHub to test. This is because running I tried (even though I knew the result) to replace the binary in the Binary has a problem: Error: The module '\\?\C:\Users\Glenn\Documents\GitHub\node-sass\vendor\win32-x64-79\binding.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 76. This version of Node.js requires
NODE_MODULE_VERSION 79. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`). I think we should drop the Do you agree? |
||
#- run: npm test | ||
# env: | ||
# CI: true |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Electron Rebuild CI - OSX (x64) | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: macos-latest | ||
|
||
strategy: | ||
matrix: | ||
electron: | ||
- 5 | ||
- 6 | ||
- 7 | ||
- 8 | ||
include: | ||
# includes a new variable for each electron (essentially a switch statement) | ||
- electron: 5 | ||
nodeVersion: 70 | ||
- electron: 6 | ||
nodeVersion: 73 | ||
- electron: 7 | ||
nodeVersion: 75 | ||
- electron: 8 | ||
nodeVersion: 76 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
os: ${{ matrix.os }} | ||
- name: Install packages | ||
run: npm install --unsafe-perm | ||
- name: Install electron-rebuild | ||
run: npm install --save-dev electron-rebuild@latest | ||
- name: Run on ${{ matrix.os }} - Electron v${{ matrix.electron }} (Node ${{ matrix.nodeVersion }}) | ||
run: ./node_modules/.bin/electron-rebuild -v=${{ matrix.electron }} -w node-sass | ||
glenn2223 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- uses: actions/upload-artifact@v1 | ||
with: | ||
name: darwin_x64_${{ matrix.nodeVersion }}_binding.node | ||
path: build/release/binding.node | ||
# npm test failing on pre-existing master issues, commenting out | ||
#- run: npm test | ||
# env: | ||
# CI: true |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Electron Rebuild CI - Windows (x32 & x64) | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: windows-latest | ||
|
||
strategy: | ||
matrix: | ||
electron: | ||
- 5 | ||
- 6 | ||
- 7 | ||
- 8 | ||
include: | ||
# includes a new variable for each electron (essentially a switch statement) | ||
- electron: 5 | ||
nodeVersion: 70 | ||
- electron: 6 | ||
nodeVersion: 73 | ||
- electron: 7 | ||
nodeVersion: 75 | ||
- electron: 8 | ||
nodeVersion: 76 | ||
arch: | ||
- ia32 | ||
- x64 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
os: ${{ matrix.os }} | ||
- name: Install packages | ||
run: npm install --unsafe-perm | ||
- name: Install electron-rebuild | ||
run: npm install --save-dev electron-rebuild@latest | ||
- name: Run on ${{ matrix.os }} - Electron v${{ matrix.electron }} (Node ${{ matrix.nodeVersion }}) | ||
run: ./node_modules/.bin/electron-rebuild -v=${{ matrix.electron }} -w node-sass | ||
- uses: actions/upload-artifact@v1 | ||
with: | ||
name: win32_${{ matrix.arch }}_${{ matrix.nodeVersion }}_binding.node | ||
path: build/release/binding.node | ||
- uses: actions/upload-artifact@v1 | ||
with: | ||
name: win32_${{ matrix.arch }}_${{ matrix.nodeVersion }}_binding.pdb | ||
path: build/release/binding.pdb | ||
# npm test failing on pre-existing master issues, commenting out | ||
glenn2223 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
#- run: npm test | ||
# env: | ||
# CI: true |
Uh oh!
There was an error while loading. Please reload this page.