Skip to content

Commit 7bf3e50

Browse files
committed
ci: configure circle 👷
1 parent fe529f4 commit 7bf3e50

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.circleci/config.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
version: 2
2+
3+
defaults: &defaults
4+
working_directory: ~/repo
5+
docker:
6+
- image: circleci/node:12-stretch
7+
8+
jobs:
9+
checkout_and_test:
10+
<<: *defaults
11+
steps:
12+
- checkout
13+
- restore_cache:
14+
keys:
15+
- v1-dependencies-{{ checksum "package.json" }}
16+
# fallback to using the latest cache if no exact match is found
17+
- v1-dependencies-
18+
19+
- run:
20+
name: Install NPM dependencies
21+
command: npm install
22+
23+
- save_cache:
24+
paths:
25+
- node_modules
26+
key: v1-dependencies-{{ checksum "package.json" }}
27+
28+
- run:
29+
name: Test syntax and perform type checking
30+
command: npm test
31+
32+
workflows:
33+
version: 2
34+
35+
test:
36+
jobs:
37+
- checkout_and_test
38+

0 commit comments

Comments
 (0)