From 0d2b974dcc39adc0276795b90fdf250582cd3dc7 Mon Sep 17 00:00:00 2001 From: David Sanders Date: Fri, 25 Aug 2023 06:45:53 -0700 Subject: [PATCH] ci: use electronjs/node orb (#77) * ci: use electronjs/node orb * ci: bump orb version * ci: expand test matrix * ci: update config * ci: bump orb version --- .circleci/config.yml | 45 ++++++++++++++++++++------------------------ 1 file changed, 20 insertions(+), 25 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 40d91dc..a9eb8f9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,35 +1,31 @@ -steps-test: &steps-test - steps: - - checkout - - restore_cache: - keys: - - v1-dependencies-{{ arch }}-{{ checksum "yarn.lock" }} - - v1-dependencies-{{ arch }} - - run: yarn --frozen-lockfile - - save_cache: - paths: - - node_modules - key: v1-dependencies-{{ arch }}-{{ checksum "yarn.lock" }} - - run: yarn build - - run: yarn test - version: 2.1 orbs: cfa: continuousauth/npm@1.0.2 - -jobs: - test: - macos: - xcode: "13.4.1" - resource_class: macos.x86.medium.gen2 - <<: *steps-test + node: electronjs/node@1.4.1 workflows: - version: 2 test_and_release: + # Run the test jobs first, then the release only when all the test jobs are successful jobs: - - test + - node/test: + executor: node/macos + name: test-mac-<< matrix.node-version >> + override-ci-command: yarn install --frozen-lockfile --ignore-engines + test-steps: + - run: yarn build + - run: yarn test + use-test-steps: true + matrix: + alias: test + parameters: + node-version: + - 20.5.0 + - 18.17.0 + - 16.20.1 + - 14.21.3 + - 12.22.12 + - 10.24.1 - cfa/release: requires: - test @@ -38,4 +34,3 @@ workflows: only: - main context: cfa-release -