Skip to content

Commit 2b3cfcb

Browse files
committed
ci: add CircleCI configuration
1 parent 5a0e021 commit 2b3cfcb

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.circleci/config.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
version: 2.1
2+
3+
orbs:
4+
node: circleci/node@2.1.1
5+
6+
jobs:
7+
test:
8+
executor:
9+
name: node/default
10+
tag: << parameters.node-version >>
11+
parameters:
12+
app-dir:
13+
default: ~/project
14+
type: string
15+
node-version:
16+
default: '13'
17+
type: string
18+
setup:
19+
default: []
20+
type: steps
21+
steps:
22+
- checkout
23+
- steps: << parameters.setup >>
24+
- node/install-packages:
25+
app-dir: << parameters.app-dir >>
26+
pkg-manager: yarn
27+
- run:
28+
name: Run Tests
29+
command: yarn test
30+
working_directory: << parameters.app-dir >>
31+
32+
workflows:
33+
martix-tests:
34+
jobs:
35+
- test:
36+
name: test/node:10
37+
node-version: '10'
38+
- test:
39+
name: test/node:12
40+
node-version: '12'
41+
- test:
42+
name: test/node:13
43+
node-version: '13'
44+
- test:
45+
name: test/node:14
46+
node-version: '14'

0 commit comments

Comments
 (0)