File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -7,17 +7,19 @@ jobs: # a collection of steps
7
7
steps :
8
8
- checkout
9
9
- restore_cache :
10
- key : dependency-cache-{{ checksum "package-lock.json" }}
10
+ name : Restore Yarn Package Cache
11
+ key : yarn-packages-{{ checksum "yarn.lock" }}
11
12
- run :
12
- name : yarn install
13
- command : yarn install
13
+ name : Install dependencies w/ Yarn
14
+ command : yarn install --frozen-lockfile
14
15
- save_cache :
15
- key : dependency-cache-{{ checksum "package-lock.json" }}
16
+ name : Save Yarn Package Cache
17
+ key : yarn-packages-{{ checksum "yarn.lock" }}
16
18
paths :
17
- - ./node_modules
19
+ - ~/.cache/yarn
18
20
- run : # run lint and check for formatting
19
21
name : check
20
- command : yarn sdk check
22
+ command : yarn sdk lint
21
23
- run : # compile the code
22
24
name : compile
23
25
command : yarn sdk compile
Original file line number Diff line number Diff line change 24
24
"typescript" : " ^3.8.3"
25
25
},
26
26
"scripts" : {
27
- "check " : " gts check" ,
27
+ "lint " : " gts check" ,
28
28
"clean" : " gts clean" ,
29
29
"compile" : " tsc -p ." ,
30
- "prebuild" : " npm run clean && npm run check " ,
31
- "build" : " npm run clean && npm run check && tsc -p . && npm run test" ,
30
+ "prebuild" : " npm run clean && npm run lint " ,
31
+ "build" : " npm run clean && npm run lint && tsc -p . && npm run test" ,
32
32
"fix" : " gts fix" ,
33
33
"test" : " mocha -r ts-node/register tests/**/*.spec.ts --reporter mocha-junit-reporter --reporter-options mochaFile=./test-results/mocha/results.xml" ,
34
34
"coverage" : " nyc npm test" ,
You can’t perform that action at this time.
0 commit comments