Skip to content

Commit

Permalink
build: test against more Node.js versions (#117)
Browse files Browse the repository at this point in the history
* build: test against more Node.js versions

* build: can't test against Node.js 12
  • Loading branch information
dsanders11 authored Feb 13, 2023
1 parent dc1c43c commit d974b04
Showing 1 changed file with 45 additions and 8 deletions.
53 changes: 45 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@ orbs:

commands:
install:
parameters:
node-version:
description: Node.js version to install
type: string
steps:
- node/install:
node-version: "16.19.0"
- run: nvm use 16.19.0
node-version: << parameters.node-version >>
- run: nvm use << parameters.node-version >>
- checkout
- restore_cache:
keys:
Expand All @@ -30,26 +34,59 @@ jobs:
test-linux:
docker:
- image: cimg/base:stable
parameters:
node-version:
description: Node.js version to install
type: string
steps:
- install
- install:
node-version: << parameters.node-version >>
- test
test-mac:
macos:
xcode: "13.3.0"
parameters:
node-version:
description: Node.js version to install
type: string
steps:
- install
- install:
node-version: << parameters.node-version >>
- test
test-windows:
executor:
name: win/default
shell: bash.exe
parameters:
node-version:
description: Node.js version to install
type: string
steps:
- install
- install:
node-version: << parameters.node-version >>
- test

workflows:
test_and_release:
jobs:
- test-linux
- test-mac
- test-windows
- test-linux:
matrix:
parameters:
node-version:
- 18.14.0
- 16.19.0
- 14.19.0
- test-mac:
matrix:
parameters:
node-version:
- 18.14.0
- 16.19.0
- 14.19.0
- test-windows:
matrix:
parameters:
node-version:
- 18.14.0
- 16.19.0
- 14.19.0

0 comments on commit d974b04

Please sign in to comment.