Skip to content

Commit

Permalink
ci: use electronjs/node orb (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsanders11 authored Aug 25, 2023
1 parent 5fd8642 commit dd2d3f7
Showing 1 changed file with 22 additions and 18 deletions.
40 changes: 22 additions & 18 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,32 @@
version: 2.1

orbs:
cfa: continuousauth/[email protected]
jobs:
test:
docker:
- image: cimg/node:14.21
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "yarn.lock" }}
- v1-dependencies-
- run: yarn install --ignore-engines
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "yarn.lock" }}
- run: yarn prettier:check
- run: yarn 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
- node/test:
name: test-<< matrix.executor >>-<< matrix.node-version >>
override-ci-command: yarn install --frozen-lockfile --ignore-engines
test-steps:
- run: yarn prettier:check
- run: yarn test
use-test-steps: true
matrix:
alias: test
parameters:
executor:
- node/linux
- node/macos
- node/windows
node-version:
- '20.5'
- '18.17'
- '16.20'
- '14.21'
- cfa/release:
requires:
- test
Expand Down

0 comments on commit dd2d3f7

Please sign in to comment.