@@ -10,25 +10,25 @@ jobs: # a collection of steps
10
10
name : update-npm
11
11
command : ' sudo npm install -g npm@latest'
12
12
- run :
13
- name : Check current version of node
13
+ name : node version
14
14
command : node -v
15
15
- run :
16
- name : Check current version of NPM
16
+ name : NPM version
17
17
command : npm -v
18
18
19
19
- restore_cache : # special step to restore the dependency cache
20
20
# Read about caching dependencies: https://circleci.com/docs/2.0/caching/
21
21
key : dependency-cache-{{ checksum "package.json" }}
22
22
- run :
23
- name : install- npm-wee
23
+ name : npm install
24
24
command : npm install
25
25
- save_cache : # special step to save the dependency cache
26
26
key : dependency-cache-{{ checksum "package.json" }}
27
27
paths :
28
28
- ./node_modules
29
29
30
30
- run : # run tests
31
- name : test
31
+ name : run tests
32
32
command : npm run ci
33
33
34
34
- store_artifacts : # special step to save test results as as artifact
@@ -40,3 +40,22 @@ jobs: # a collection of steps
40
40
prefix : coverage
41
41
- store_test_results : # for display in Test Summary: https://circleci.com/docs/2.0/collect-test-data/
42
42
path : test-results.xml
43
+
44
+ book :
45
+ docker :
46
+ - image : circleci/ruby:2.5.3-stretch
47
+ steps :
48
+ - checkout
49
+ - run :
50
+ name : bundler version
51
+ command : bundle -v
52
+ - run :
53
+ name : ruby version
54
+ command : ruby -v
55
+
56
+ workflows :
57
+ version : 2
58
+ build_and_test :
59
+ jobs :
60
+ - build
61
+ - book
0 commit comments