From d974b043a96c9591e2a90d3e18eae4acb10f6558 Mon Sep 17 00:00:00 2001 From: David Sanders Date: Mon, 13 Feb 2023 04:20:29 -0800 Subject: [PATCH] build: test against more Node.js versions (#117) * build: test against more Node.js versions * build: can't test against Node.js 12 --- .circleci/config.yml | 53 +++++++++++++++++++++++++++++++++++++------- 1 file changed, 45 insertions(+), 8 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index dc27711..1774631 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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: @@ -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