File tree Expand file tree Collapse file tree 1 file changed +75
-0
lines changed Expand file tree Collapse file tree 1 file changed +75
-0
lines changed Original file line number Diff line number Diff line change
1
+ version : 2.1
2
+
3
+ orbs :
4
+ codecov : codecov/codecov@1.0.4
5
+ build-helpers : style/build-helpers@1.3.1
6
+
7
+ references :
8
+ attach_workspace : &attach_workspace
9
+ attach_workspace :
10
+ at : ~/repo
11
+ persist_to_workspace : &persist_to_workspace
12
+ persist_to_workspace :
13
+ root : ~/repo
14
+ paths : .
15
+
16
+ executors :
17
+ albus :
18
+ docker :
19
+ - image : circleci/node:10.15.1
20
+ working_directory : ~/repo
21
+
22
+ jobs :
23
+ install_dependencies :
24
+ executor : albus
25
+ steps :
26
+ - *attach_workspace
27
+ - checkout
28
+ - restore_cache :
29
+ keys :
30
+ - v1-dependencies-{{ checksum "package.json" }}
31
+ # fallback to using the latest cache if no exact match is found
32
+ - v1-dependencies-
33
+ - run : npm install
34
+ - save_cache :
35
+ paths :
36
+ - node_modules
37
+ key : v1-dependencies-{{ checksum "package.json" }}
38
+ - *persist_to_workspace
39
+ test :
40
+ executor : albus
41
+ steps :
42
+ - *attach_workspace
43
+ - run : npm test
44
+ - codecov/upload :
45
+ file : .nyc_output/*.json
46
+ - *persist_to_workspace
47
+ publish :
48
+ executor : albus
49
+ steps :
50
+ - *attach_workspace
51
+ - checkout
52
+ - run : npx semantic-release
53
+
54
+ workflows :
55
+ build :
56
+ jobs :
57
+ - install_dependencies :
58
+ context : pi
59
+ filters :
60
+ branches :
61
+ only : /.*/
62
+ - test :
63
+ context : pi
64
+ requires :
65
+ - install_dependencies
66
+ filters :
67
+ branches :
68
+ only : /.*/
69
+ - publish :
70
+ context : pi
71
+ requires :
72
+ - test
73
+ filters :
74
+ branches :
75
+ only : master
You can’t perform that action at this time.
0 commit comments