We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe529f4 commit 7bf3e50Copy full SHA for 7bf3e50
.circleci/config.yml
@@ -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
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