Skip to content

Commit

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

* ci: use --ignore-engines
  • Loading branch information
dsanders11 committed Aug 4, 2023
1 parent 2411532 commit b70c472
Showing 1 changed file with 23 additions and 40 deletions.
63 changes: 23 additions & 40 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,53 +1,36 @@
step-restore-cache: &step-restore-cache
restore_cache:
keys:
- v1-dependencies-{{ arch }}-{{ checksum "yarn.lock" }}
- v1-dependencies-{{ arch }}

steps-test: &steps-test
steps:
- run: git config --global core.autocrlf input
- checkout
- *step-restore-cache
- run: yarn --frozen-lockfile
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ arch }}-{{ checksum "yarn.lock" }}
- run: yarn test
- run: yarn build:docs

version: 2.1

orbs:
win: circleci/windows@5.0.0
cfa: continuousauth/npm@1.0.2
jobs:
test-linux-14:
docker:
- image: cimg/node:14.17
<<: *steps-test
test-mac:
macos:
xcode: "13.0.0"
<<: *steps-test
test-windows:
executor:
name: win/server-2019
shell: bash.exe
<<: *steps-test
node: electronjs/node@1.1.0

workflows:
test_and_release:
# Run the test jobs first, then the release only when all the test jobs are successful
jobs:
- test-linux-14
- test-mac
- test-windows
- node/test:
name: test-<< matrix.executor >>-<< matrix.node-version >>
override-ci-command: yarn install --frozen-lockfile --ignore-engines
pre-steps:
- run: git config --global core.autocrlf input
post-steps:
- run: yarn build:docs
matrix:
alias: test
parameters:
executor:
- node/linux
- node/macos
- node/windows
node-version:
- 20.2.0
- 18.16.0
- 16.20.0
- 14.21.3
- 12.22.12
- cfa/release:
requires:
- test-linux-14
- test-mac
- test-windows
- test
filters:
branches:
only:
Expand Down

0 comments on commit b70c472

Please sign in to comment.