This repository was archived by the owner on Sep 17, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-13
lines changed Expand file tree Collapse file tree 2 files changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ version: 2.1
6
6
jobs :
7
7
build :
8
8
docker :
9
- - image : circleci/node:10-jessie
9
+ - image : circleci/node:lts-buster
10
10
11
11
working_directory : ~/repo
12
12
@@ -16,27 +16,23 @@ jobs:
16
16
- restore_cache :
17
17
name : Restore Yarn package cache
18
18
keys :
19
- - v1 -dependencies-{{ checksum "yarn.lock" }}
19
+ - v2 -dependencies-{{ checksum "yarn.lock" }}
20
20
# fallback to using the latest cache if no exact match is found
21
- - v1 -dependencies-
21
+ - v2 -dependencies-
22
22
23
23
- run :
24
24
name : Install dependencies
25
25
command : yarn install
26
26
27
27
- save_cache :
28
28
name : Save Yarn package cache
29
- key : v1 -dependencies-{{ checksum "yarn.lock" }}
29
+ key : v2 -dependencies-{{ checksum "yarn.lock" }}
30
30
paths :
31
31
- ~/.cache/yarn
32
32
33
33
- run :
34
34
name : Build the project
35
- command : yarn build
36
-
37
- - run :
38
- name : Run tests
39
- command : yarn test --ci --runInBand
35
+ command : yarn ci:all
40
36
41
37
- store_artifacts :
42
38
name : Store test results
56
52
name : Upload code coverage report
57
53
command : yarn codecov --disable=gcov
58
54
59
- - run :
60
- name : Linting
61
- command : yarn lint
62
-
63
55
workflows :
64
56
version : 2.1
65
57
build :
Original file line number Diff line number Diff line change 44
44
"typescript" : " ^3.6.2"
45
45
},
46
46
"scripts" : {
47
+ "all" : " run-p rebuild lint test" ,
47
48
"build" : " rollup --config ./rollup.config.js" ,
49
+ "ci:all" : " run-p build lint ci:test" ,
50
+ "ci:test" : " jest --ci --runInBand" ,
48
51
"clean" : " node ./build/clean" ,
49
52
"doc" : " typedoc" ,
50
53
"doc:gh-pages" : " gh-pages --dist target/typedoc --dotfiles" ,
51
54
"doc:ci" : " node ./build/doc-ci" ,
52
55
"doc:publish" : " run-s doc doc:ci \" doc:gh-pages {@}\" --" ,
53
56
"lint" : " tslint --project ." ,
57
+ "rebuild" : " run-s clean build" ,
54
58
"test" : " jest"
55
59
}
56
60
}
You can’t perform that action at this time.
0 commit comments