File tree 1 file changed +33
-9
lines changed
1 file changed +33
-9
lines changed Original file line number Diff line number Diff line change 1
1
version : 2.1
2
2
3
3
commands :
4
- test-nodejs :
4
+ prepare-env :
5
5
steps :
6
- - run :
7
- name : NPM Versions
8
- command : npm version
9
6
- checkout
10
7
- restore_cache :
11
8
keys :
12
9
- v{{ .Environment.CIRCLE_CACHE_VERSION }}-{{ arch }}-npm-cache-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}
13
10
- v{{ .Environment.CIRCLE_CACHE_VERSION }}-{{ arch }}-npm-cache-master-{{ .Environment.CIRCLE_JOB }}
11
+ prepare-lint :
12
+ steps :
13
+ - run :
14
+ name : Install standard linter
15
+ command : npm i standard
16
+ setup-nodejs :
17
+ steps :
18
+ - prepare-env
19
+ - run :
20
+ name : NPM Versions
21
+ command : npm version
14
22
- run :
15
23
name : Install dependencies
16
24
command : npm ci
17
25
- run :
18
26
name : Webpack build
19
27
command : npm run build
28
+ - save-npm-cache
29
+ run-tests :
30
+ steps :
31
+ - setup-nodejs
20
32
- run :
21
33
name : Test
22
34
command : npm test
23
- - save-npm-cache
35
+ run-lint :
36
+ steps :
37
+ - prepare-env
38
+ - prepare-lint
39
+ - run :
40
+ name : Lint
41
+ command : npm run test:lint
24
42
save-npm-cache :
25
43
steps :
26
44
- save_cache :
@@ -29,13 +47,19 @@ commands:
29
47
- ~/.npm/_cacache
30
48
31
49
jobs :
32
- node-v10 :
50
+ test-node-v10 :
51
+ docker :
52
+ - image : node:10
53
+ steps :
54
+ - run-tests
55
+ lint-node-v10 :
33
56
docker :
34
57
- image : node:10
35
58
steps :
36
- - test-nodejs
59
+ - run-lint
37
60
38
61
workflows :
39
- unit- test :
62
+ test :
40
63
jobs :
41
- - node-v10
64
+ - test-node-v10
65
+ - lint-node-v10
You can’t perform that action at this time.
0 commit comments