Skip to content

Commit 6a587f2

Browse files
authored
ci: use electronjs/node orb (#91)
1 parent fddaf1a commit 6a587f2

File tree

1 file changed

+22
-19
lines changed

1 file changed

+22
-19
lines changed

.circleci/config.yml

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,32 @@
11
version: 2.1
2+
23
orbs:
34
cfa: continuousauth/npm@1.0.2
4-
jobs:
5-
test:
6-
docker:
7-
- image: cimg/node:14.17
8-
steps:
9-
- checkout
10-
- restore_cache:
11-
keys:
12-
- v1-dependencies-{{ checksum "yarn.lock" }}
13-
- v1-dependencies-
14-
- run: npx yarn install
15-
- save_cache:
16-
paths:
17-
- node_modules
18-
key: v1-dependencies-{{ checksum "yarn.lock" }}
19-
- run: npx yarn prettier:check
20-
- run: npx yarn build
21-
- run: npx yarn test
5+
node: electronjs/node@1.4.1
6+
227
workflows:
238
test_and_release:
249
# Run the test jobs first, then the release only when all the test jobs are successful
2510
jobs:
26-
- test
11+
- node/test:
12+
name: test-<< matrix.executor >>-<< matrix.node-version >>
13+
test-steps:
14+
- run: yarn prettier:check
15+
- run: yarn build
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'
2730
- cfa/release:
2831
requires:
2932
- test

0 commit comments

Comments
 (0)