File tree 3 files changed +19
-12
lines changed
3 files changed +19
-12
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
2
3
- on :
4
- push :
5
- branches : [master]
6
- pull_request :
7
- branches : [master]
3
+ on : [push, pull_request]
8
4
9
5
jobs :
10
6
build :
11
7
runs-on : ubuntu-latest
12
8
13
9
strategy :
14
10
matrix :
15
- node-version : [10 .x, 12.x, 14 .x]
11
+ node-version : [14 .x, 16 .x]
16
12
17
13
steps :
18
- - uses : actions/checkout@v2
14
+ - name : Checkout repository
15
+ uses : actions/checkout@v2
19
16
20
17
- name : Use Node.js ${{ matrix.node-version }}
21
18
uses : actions/setup-node@v2
22
19
with :
23
20
node-version : ${{ matrix.node-version }}
24
21
25
- - name : npm install, build, and test
22
+ - name : Install and Build
26
23
run : |
27
24
npm install
28
25
npm run build
29
- npm test
30
- - uses : codecov/codecov-action@v2
31
- env :
32
- CI : true
26
+
27
+ - name : Test
28
+ run : npm test
29
+
30
+ - name : Webpack Bundle
31
+ run : npm run bundle:tmp
32
+
33
+ - name : Upload code coverage
34
+ uses : codecov/codecov-action@v2
Original file line number Diff line number Diff line change 4
4
"description" : " A Schema based Object to Buffer converter" ,
5
5
"main" : " lib/index.js" ,
6
6
"scripts" : {
7
+ "test:ci" : " npm i && npm run build && npm test && npm run bundle:tmp" ,
7
8
"start" : " npm run dev" ,
8
9
"dev" : " npm run build && npm-run-all --parallel dev:*" ,
9
10
"dev:tsc" : " tsc --watch" ,
10
11
"dev:nodemon" : " nodemon lib/dev.js --watch lib" ,
11
12
"build" : " npm run clean && tsc" ,
12
13
"bundle" : " webpack --config webpack.bundle.js" ,
14
+ "bundle:tmp" : " webpack --config webpack.bundle.tmp.js" ,
13
15
"test" : " jest --collectCoverage" ,
14
16
"clean" : " rimraf lib" ,
15
17
"format" : " prettier --write src/**/*.ts && prettier --write test/**/*.js" ,
Original file line number Diff line number Diff line change
1
+ const config = require ( './webpack.bundle.js' )
2
+
3
+ module . exports = { ...config , output : { ...config . output , filename : 'snapshot-interpolation.tmp.js' } }
You can’t perform that action at this time.
0 commit comments