Skip to content

Commit

Permalink
ci: use electronjs/node orb (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsanders11 authored Aug 31, 2023
1 parent fd158cc commit de8b068
Showing 1 changed file with 13 additions and 25 deletions.
38 changes: 13 additions & 25 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
jobs:
test-mac:
macos:
xcode: "13.4.0"
resource_class: macos.x86.medium.gen2
<<: *steps-test
node: electronjs/[email protected]

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
Expand Down

0 comments on commit de8b068

Please sign in to comment.