Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
chore: Add Node 15 support (#2983)
Browse files Browse the repository at this point in the history
  • Loading branch information
nschonni authored Oct 27, 2020
1 parent e2391c2 commit 0648b5a
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 5 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/alpine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,25 @@ jobs:
runs-on: ubuntu-latest
container:
image: node:${{ matrix.node }}-alpine${{ matrix.alpine }}
env:
SKIP_SASS_BINARY_DOWNLOAD_FOR_CI: true
strategy:
fail-fast: false
matrix:
node:
- 10
- 12
- 14
- 15

include:
- node: 10
alpine: "3.9"
- node: 12
alpine: "3.9"
- node: 14
alpine: "3.10"
- node: 15
alpine: "3.10"

steps:
- name: Install Alpine build tools
run: apk add --no-cache python make git gcc g++
Expand All @@ -35,6 +38,8 @@ jobs:

- name: Install packages
run: npm install --unsafe-perm
env:
SKIP_SASS_BINARY_DOWNLOAD_FOR_CI: true

- name: Run tests
run: npm test
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
- 10
- 12
- 14
- 15

include:
- node: 10
gcc: "gcc-4.9"
Expand All @@ -30,6 +32,11 @@ jobs:
gcc: "gcc-6"
gpp: "g++-6"
os: ubuntu-18.04
- node: 15
gcc: "gcc-6"
gpp: "g++-6"
os: ubuntu-18.04

steps:
- uses: actions/checkout@v2

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
- 10
- 12
- 14
- 15

steps:
- uses: actions/checkout@v2
Expand Down
13 changes: 12 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
build:
runs-on: windows-2016
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
Expand All @@ -17,6 +17,17 @@ jobs:
- 10
- 12
- 14
- 15

include:
- node: 10
os: windows-2016
- node: 12
os: windows-2016
- node: 14
os: windows-2016
- node: 15
os: windows-2019

steps:
- uses: actions/checkout@v2
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Below is a quick guide for minimum and maximum support supported version of node

NodeJS | Supported node-sass version | Node Module
--------|-----------------------------|------------
Node 15 | 5.0+ | 88
Node 14 | 4.14+ | 83
Node 13 | 4.13+, <5.0 | 79
Node 12 | 4.12+ | 72
Expand Down
6 changes: 6 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
- nodejs_version: 14
GYP_MSVS_VERSION: 2017
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
- nodejs_version: 15
GYP_MSVS_VERSION: 2019
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019

install:
# https://www.appveyor.com/docs/lang/nodejs-iojs/#installing-any-version-of-nodejs-or-iojs
Expand Down Expand Up @@ -118,6 +121,9 @@
- nodejs_version: 14
GYP_MSVS_VERSION: 2017
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
- nodejs_version: 15
GYP_MSVS_VERSION: 2019
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019

install:
# https://www.appveyor.com/docs/lang/nodejs-iojs/#installing-any-version-of-nodejs-or-iojs
Expand Down
1 change: 1 addition & 0 deletions lib/extensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ function getHumanNodeVersion(abi) {
case 72: return 'Node.js 12.x';
case 79: return 'Node.js 13.x';
case 83: return 'Node.js 14.x';
case 88: return 'Node.js 15.x';
default: return false;
}
}
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"lint": "eslint bin/node-sass lib scripts test",
"test": "mocha test/{*,**/**}.js",
"build": "node scripts/build.js --force",
"prepublish": "not-in-install && node scripts/prepublish.js || in-install"
"prepublishOnly ": "scripts/prepublish.js"
},
"files": [
"bin",
Expand All @@ -59,7 +59,6 @@
"gaze": "^1.0.0",
"get-stdin": "^4.0.1",
"glob": "^7.0.3",
"in-publish": "^2.0.0",
"lodash": "^4.17.15",
"meow": "^3.7.0",
"mkdirp": "^0.5.1",
Expand Down

0 comments on commit 0648b5a

Please sign in to comment.