Skip to content

Commit dd2d3f7

Browse files
authored
ci: use electronjs/node orb (#240)
1 parent 5fd8642 commit dd2d3f7

File tree

1 file changed

+22
-18
lines changed

1 file changed

+22
-18
lines changed

.circleci/config.yml

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,32 @@
11
version: 2.1
2+
23
orbs:
34
cfa: continuousauth/[email protected]
4-
jobs:
5-
test:
6-
docker:
7-
- image: cimg/node:14.21
8-
steps:
9-
- checkout
10-
- restore_cache:
11-
keys:
12-
- v1-dependencies-{{ checksum "yarn.lock" }}
13-
- v1-dependencies-
14-
- run: yarn install --ignore-engines
15-
- save_cache:
16-
paths:
17-
- node_modules
18-
key: v1-dependencies-{{ checksum "yarn.lock" }}
19-
- run: yarn prettier:check
20-
- run: yarn test
5+
node: electronjs/[email protected]
6+
217
workflows:
228
test_and_release:
239
# Run the test jobs first, then the release only when all the test jobs are successful
2410
jobs:
25-
- test
11+
- node/test:
12+
name: test-<< matrix.executor >>-<< matrix.node-version >>
13+
override-ci-command: yarn install --frozen-lockfile --ignore-engines
14+
test-steps:
15+
- run: yarn prettier:check
16+
- run: yarn test
17+
use-test-steps: true
18+
matrix:
19+
alias: test
20+
parameters:
21+
executor:
22+
- node/linux
23+
- node/macos
24+
- node/windows
25+
node-version:
26+
- '20.5'
27+
- '18.17'
28+
- '16.20'
29+
- '14.21'
2630
- cfa/release:
2731
requires:
2832
- test

0 commit comments

Comments
 (0)