Skip to content

Commit

Permalink
Remove Node 14 and add 20 to pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
ranisalt committed Aug 2, 2023
1 parent 00c5047 commit 51d8364
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 18 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,8 @@ jobs:
test:
strategy:
matrix:
node-version: [14, 16, 18]
node-version: [16, 18, 20]
os: [ubuntu-20.04, macos-11, macos-m1, windows-2019]
exclude:
- node-version: 14
os: macos-m1

name: Test for node-${{ matrix.node-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -62,7 +59,7 @@ jobs:
name: Test on Alpine Linux
runs-on: ubuntu-latest
container:
image: node:14-alpine
image: node:16-alpine

steps:
- name: Install build deps
Expand All @@ -82,7 +79,7 @@ jobs:
test-freebsd:
strategy:
matrix:
node-version: [14, 16, 18]
node-version: [16, 18, 20]

name: Test for node-${{ matrix.node-version }} on FreeBSD
runs-on: macos-12
Expand Down
20 changes: 8 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ jobs:
with:
submodules: true

- name: Use Node.js 14
- name: Use Node.js 16
uses: actions/setup-node@v3
with:
cache: yarn
node-version: 14
node-version: 16
registry-url: https://registry.npmjs.org/

- name: Install dependencies
Expand All @@ -36,11 +36,7 @@ jobs:
build:
strategy:
matrix:
node-version: [14]
os: [ubuntu-20.04, macos-11, windows-2019]
include:
- node-version: 16
os: macos-m1

name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
Expand All @@ -51,11 +47,11 @@ jobs:
with:
submodules: true

- name: Use Node.js ${{ matrix.node-version }}
- name: Use Node.js 16
uses: actions/setup-node@v3
with:
cache: yarn
node-version: ${{ matrix.node-version }}
node-version: 16

- name: Install dependencies
run: yarn install --frozen-lockfile
Expand All @@ -74,7 +70,7 @@ jobs:
name: Build on Alpine Linux
runs-on: ubuntu-latest
container:
image: node:14-alpine
image: node:16-alpine

steps:
- name: Install build deps
Expand Down Expand Up @@ -130,13 +126,13 @@ jobs:
ubuntu*|jessie|stretch|buster)
apt-get update -y
apt-get install -y curl
curl -fsSL https://deb.nodesource.com/setup_14.x | bash -
curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
apt-get install -y make g++ python nodejs
npm install --global yarn
;;
alpine*)
apk add --update make g++ python3
apk add --no-cache --repository https://dl-cdn.alpinelinux.org/alpine/v3.13/main/ nodejs~=14 npm~=14
apk add --no-cache --repository https://dl-cdn.alpinelinux.org/alpine/v3.13/main/ nodejs~=16 npm~=16
npm install --global yarn
;;
esac
Expand Down Expand Up @@ -167,7 +163,7 @@ jobs:
with:
envs: 'npm_config_build_from_source'
prepare: |
pkg install -y gmake python3 yarn-node14
pkg install -y gmake python3 yarn-node16
run: |
yarn install --frozen-lockfile
yarn node-pre-gyp package
Expand Down

0 comments on commit 51d8364

Please sign in to comment.