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 #161

Merged
merged 4 commits into from
Aug 25, 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
41 changes: 23 additions & 18 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,34 @@
version: 2.1

orbs:
cfa: continuousauth/[email protected]
jobs:
test:
docker:
- image: cimg/node:18.11.0
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "yarn.lock" }}
- run: yarn --frozen-lockfile
- save_cache:
key: dependency-cache-{{ checksum "yarn.lock" }}
paths:
- ./node_modules
- run: yarn lint
- run: yarn test
node: electronjs/[email protected]

workflows:
test_and_release:
# release when tests are successful
# 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 lint
- run: yarn test
use-test-steps: true
matrix:
alias: test-mac
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
- test-mac
filters:
branches:
only:
Expand Down