This repository was archived by the owner on Oct 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +18
-9
lines changed Expand file tree Collapse file tree 2 files changed +18
-9
lines changed Original file line number Diff line number Diff line change @@ -12,22 +12,30 @@ jobs:
12
12
runs-on : ubuntu-latest
13
13
strategy :
14
14
matrix :
15
- node-version : [12.x , 13.x , 14.x , 16.x ]
15
+ node-version : [12, 13, 14, 16]
16
16
steps :
17
17
- uses : actions/checkout@v2
18
-
19
18
- name : Use Node.js ${{ matrix.node-version }}
20
19
uses : actions/setup-node@v2
21
20
with :
22
21
node-version : ${{ matrix.node-version }}
23
22
cache : ' npm'
24
-
25
- - run : npm install
26
- - run : npm run coverage
27
- - run : npm run test:browser
28
-
23
+ - run : npm i
24
+ - run : npm run lint
25
+ - run : npm run coverage
29
26
- name : Upload coverage to Coveralls
30
27
uses : coverallsapp/github-action@master
31
28
with :
32
29
github-token : ${{ secrets.GITHUB_TOKEN }}
33
-
30
+ if : ${{ matrix.node-version == 12 }}
31
+ test-browser :
32
+ runs-on : ubuntu-latest
33
+ steps :
34
+ - uses : actions/checkout@v2
35
+ - name : Use Node.js 12
36
+ uses : actions/setup-node@v2
37
+ with :
38
+ node-version : 12
39
+ cache : ' npm'
40
+ - run : npm i
41
+ - run : npm run test:browser
Original file line number Diff line number Diff line change 11
11
" dist.browser"
12
12
],
13
13
"scripts" : {
14
+ "postinstall" : " npm run build" ,
14
15
"build" : " tsc -p ./tsconfig.prod.json && tsc -p tsconfig.browser.json" ,
15
16
"prepublishOnly" : " npm run lint && npm run build && npm run test" ,
16
17
"docs:build" : " typedoc --out docs --mode file --readme none --theme markdown --mdEngine github --excludeNotExported src" ,
17
18
"coverage" : " npm run build && nyc --reporter=lcov npm run test:unit" ,
18
19
"tsc" : " tsc -p ./tsconfig.prod.json --noEmit" ,
19
20
"lint" : " ethereumjs-config-lint" ,
20
21
"lint:fix" : " ethereumjs-config-lint-fix" ,
21
- "test" : " npm run lint && npm run build && npm run test:unit && npm run test:browser" ,
22
+ "test" : " npm run test:unit && npm run test:browser" ,
22
23
"test:unit" : " mocha --require ts-node/register ./test/**/*.ts" ,
23
24
"test:browser" : " karma start karma.conf.js"
24
25
},
You can’t perform that action at this time.
0 commit comments