Skip to content

Commit

Permalink
ci: use electronjs/node orb (#77)
Browse files Browse the repository at this point in the history
* ci: use electronjs/node orb

* ci: bump orb version

* ci: expand test matrix

* ci: update config

* ci: bump orb version
  • Loading branch information
dsanders11 authored Aug 25, 2023
1 parent 0cfaddc commit 0d2b974
Showing 1 changed file with 20 additions and 25 deletions.
45 changes: 20 additions & 25 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]

jobs:
test:
macos:
xcode: "13.4.1"
resource_class: macos.x86.medium.gen2
<<: *steps-test
node: electronjs/[email protected]

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
Expand All @@ -38,4 +34,3 @@ workflows:
only:
- main
context: cfa-release

0 comments on commit 0d2b974

Please sign in to comment.