From de8b0688eb008c994b513a2ff4f288f240eb8840 Mon Sep 17 00:00:00 2001 From: David Sanders Date: Thu, 31 Aug 2023 07:12:08 -0700 Subject: [PATCH] ci: use electronjs/node orb (#35) --- .circleci/config.yml | 38 +++++++++++++------------------------- 1 file changed, 13 insertions(+), 25 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4dbc137..1a58e08 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,36 +1,24 @@ -step-restore-cache: &step-restore-cache - restore_cache: - keys: - - v2-dependencies-{{ arch }}-{{ checksum "yarn.lock" }} - - v2-dependencies-{{ arch }} - -steps-test: &steps-test - steps: - - checkout - - *step-restore-cache - - run: yarn - - save_cache: - paths: - - node_modules - - cache - key: v2-dependencies-{{ arch }}-{{ checksum "yarn.lock" }} - - run: yarn test - version: 2.1 + orbs: cfa: continuousauth/npm@1.0.2 -jobs: - test-mac: - macos: - xcode: "13.4.0" - resource_class: macos.x86.medium.gen2 - <<: *steps-test + node: electronjs/node@1.4.1 workflows: test_and_release: # Run the test jobs first, then the release only when all the test jobs are successful jobs: - - test-mac + - node/test: + executor: node/macos + name: test-mac-<< matrix.node-version >> + matrix: + alias: test-mac + parameters: + node-version: + - '20.5' + - '18.17' + - '16.20' + - '14.21' - cfa/release: requires: - test-mac