ci: enable Node.js v17 testing

Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com>
This commit is contained in:
Rifa Achrinza 2021-11-21 15:52:40 +08:00
parent 816b948ab0
commit fe82f6ac79
2 changed files with 16 additions and 3 deletions

View File

@ -18,7 +18,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [10, 12, 14, 16]
node-version: [10, 12, 14, 16, 17]
include:
- os: macos-latest
node-version: 14
@ -34,8 +34,12 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Update NPM (Node.js v10)
if: matrix.node-version == 10
run: npm install --global npm@7
- name: Update NPM
run: npm install --global npm
if: matrix.node-version != 10
run: npm install --global npm@8
- name: Bootstrap project
run: npm ci --ignore-scripts
- name: Build project

View File

@ -5,8 +5,16 @@ arch:
- arm64
- ppc64le
- s390x
dist: bionic
language: node_js
before_install: npm install --global npm
before_install: |
NODEJS_VERSION=$(node --version)
if [ 'v10' = ${NODEJS_VERSION%%.*} ]
then
npm install --global npm@7
else
npm install --global npm@8
fi
script:
- npm run --ignore-scripts build
- npm test --ignore-scripts
@ -15,3 +23,4 @@ node_js:
- 12
- 14
- 16
- 17