File tree 1 file changed +43
-0
lines changed
1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ version : 2
2
+
3
+ jobs :
4
+ build_and_test_node :
5
+ docker :
6
+ - image : circleci/python:3.7-stretch-node
7
+
8
+ steps :
9
+ - checkout
10
+ - run :
11
+ name : Check current version of node
12
+ command : node -v
13
+ - restore_cache :
14
+ key : deps1-{{ .Branch }}-{{ checksum "package-lock.json" }}
15
+
16
+ - run :
17
+ name : Install package.json
18
+ command : npm ci
19
+
20
+ - save_cache :
21
+ key : deps1-{{ .Branch }}-{{ checksum "package-lock.json" }}
22
+ paths :
23
+ - node_modules
24
+
25
+ - run :
26
+ name : Install Dash for package build and build package
27
+ command : |
28
+ python -m venv venv
29
+ . venv/bin/activate
30
+ pip install --upgrade pip
31
+ pip install dash>=1.6.1
32
+ npm run build
33
+
34
+ - run :
35
+ name : Run unit tests
36
+ command : |
37
+ npm run test
38
+
39
+ workflows :
40
+ version : 2
41
+ build :
42
+ jobs :
43
+ - build_and_test_node
You can’t perform that action at this time.
0 commit comments