Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: use electronjs/node orb #253

Merged
merged 2 commits into from
Aug 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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