Skip to content

Commit 6cb3ec8

Browse files
committed
use codecov github action
1 parent 057983b commit 6cb3ec8

File tree

13 files changed

+36
-125
lines changed

13 files changed

+36
-125
lines changed

.circleci/config.yml

-64
This file was deleted.

.github/workflows/account-build.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ jobs:
3333
- run: npx lerna run build --scope ethereumjs-account --include-dependencies
3434
- run: npx lerna run lint --scope ethereumjs-account
3535
- run: npm test
36-
env:
37-
CI: true
3836
working-directory: '${{ env.cwd }}'
37+
- uses: codecov/codecov-action@v1
38+
with:
39+
file: '${{ env.cwd }}/coverage/lcov.info'
3940
env:
4041
cwd: '${{github.workspace}}/packages/account'

.github/workflows/block-build.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,11 @@ jobs:
3131
working-directory: '${{ env.cwd }}'
3232
- run: npx lerna run lint --scope ethereumjs-block
3333
- run: npm run test:node
34-
env:
35-
CI: true
3634
working-directory: '${{ env.cwd }}'
37-
- run: 'npm run test:browser'
38-
env:
39-
CI: true
35+
- run: npm run test:browser
4036
working-directory: '${{ env.cwd }}'
37+
- uses: codecov/codecov-action@v1
38+
with:
39+
file: '${{ env.cwd }}/coverage/lcov.info'
4140
env:
4241
cwd: '${{github.workspace}}/packages/block'

.github/workflows/blockchain-build.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ jobs:
3333
- run: npx lerna run --scope ethereumjs-blockchain --include-dependencies build
3434
- run: npx lerna run lint --scope ethereumjs-blockchain
3535
- run: npm test
36-
env:
37-
CI: true
3836
working-directory: '${{ env.cwd }}'
37+
- uses: codecov/codecov-action@v1
38+
with:
39+
file: '${{ env.cwd }}/coverage/lcov.info'
3940
env:
4041
cwd: '${{github.workspace}}/packages/blockchain'

.github/workflows/common-build.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ jobs:
2727
- run: npx lerna run --scope ethereumjs-common --include-dependencies build
2828
- run: npx lerna run lint --scope ethereumjs-common
2929
- run: npm test
30-
env:
31-
CI: true
3230
working-directory: '${{ env.cwd }}'
31+
- uses: codecov/codecov-action@v1
32+
with:
33+
file: '${{ env.cwd }}/coverage/lcov.info'
3334
env:
3435
cwd: '${{github.workspace}}/packages/common'

.github/workflows/tx-bulid.yml

+5-6
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,12 @@ jobs:
2828
- run: npx lerna bootstrap --scope ethereumjs-tx --ignore-scripts --include-dependencies --no-ci
2929
- run: npx lerna run --scope ethereumjs-tx --include-dependencies build
3030
- run: npx lerna run lint --scope ethereumjs-tx
31-
- run: 'npm run test:node'
32-
env:
33-
CI: true
31+
- run: npm run test:node
3432
working-directory: '${{ env.cwd }}'
35-
- run: 'npm run test:browser'
36-
env:
37-
CI: true
33+
- run: npm run test:browser
3834
working-directory: '${{ env.cwd }}'
35+
- uses: codecov/codecov-action@v1
36+
with:
37+
file: '${{ env.cwd }}/coverage/lcov.info'
3938
env:
4039
cwd: '${{github.workspace}}/packages/tx'

.github/workflows/vm-build.yml

+9-12
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,9 @@ jobs:
3030
- run: npx lerna bootstrap --scope ethereumjs-vm --ignore-scripts --include-dependencies --no-ci
3131
- run: npx lerna run --scope ethereumjs-vm --include-dependencies build
3232
- run: npx lerna run lint --scope ethereumjs-vm
33-
- run: 'npm run test:API'
34-
env:
35-
CI: true
33+
- run: npm run test:API
3634
working-directory: '${{ env.cwd }}'
37-
- run: 'npm run test:API:browser'
38-
env:
39-
CI: true
35+
- run: npm run test:API:browser
4036
working-directory: '${{ env.cwd }}'
4137
env:
4238
cwd: '${{github.workspace}}/packages/vm'
@@ -49,10 +45,13 @@ jobs:
4945
- uses: actions/checkout@v1
5046
- run: npx lerna bootstrap --scope ethereumjs-vm --ignore-scripts --include-dependencies --no-ci
5147
- run: npx lerna run --scope ethereumjs-vm --include-dependencies build
52-
- run: 'npm run test:state:selectedForks'
53-
env:
54-
CI: true
48+
- run: npm run test:state:selectedForks
5549
working-directory: '${{ env.cwd }}'
50+
- run: npm run coverage
51+
working-directory: '${{ env.cwd }}'
52+
- uses: codecov/codecov-action@v1
53+
with:
54+
file: '${{ env.cwd }}/coverage/lcov.info'
5655
env:
5756
cwd: '${{github.workspace}}/packages/vm'
5857
test-vm-blockchain:
@@ -64,9 +63,7 @@ jobs:
6463
- uses: actions/checkout@v1
6564
- run: npx lerna bootstrap --scope ethereumjs-vm --ignore-scripts --include-dependencies --no-ci
6665
- run: npx lerna run --scope ethereumjs-vm --include-dependencies build
67-
- run: 'npm run test:blockchain'
68-
env:
69-
CI: true
66+
- run: npm run test:blockchain
7067
working-directory: '${{ env.cwd }}'
7168
env:
7269
cwd: '${{github.workspace}}/packages/vm'

.github/workflows/vm-nightly-test.yml

+5-15
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,9 @@ jobs:
1212
- uses: actions/checkout@v1
1313
- run: npx lerna bootstrap --scope ethereumjs-vm --ignore-scripts --include-dependencies --no-ci
1414
- run: npx lerna run --scope ethereumjs-vm --include-dependencies build
15-
- run: 'npm run test:API'
16-
env:
17-
CI: true
15+
- run: npm run test:API
1816
working-directory: '${{ env.cwd }}'
19-
- run: 'npm run test:API:browser'
20-
env:
21-
CI: true
17+
- run: npm run test:API:browser
2218
working-directory: '${{ env.cwd }}'
2319
env:
2420
cwd: '${{github.workspace}}/packages/vm'
@@ -31,9 +27,7 @@ jobs:
3127
- uses: actions/checkout@v1
3228
- run: npx lerna bootstrap --scope ethereumjs-vm --ignore-scripts --include-dependencies --no-ci
3329
- run: npx lerna run --scope ethereumjs-vm --include-dependencies build
34-
- run: 'npm run test:state:allForks'
35-
env:
36-
CI: true
30+
- run: npm run test:state:allForks
3731
working-directory: '${{ env.cwd }}'
3832
env:
3933
cwd: '${{github.workspace}}/packages/vm'
@@ -46,9 +40,7 @@ jobs:
4640
- run: npx lerna bootstrap --scope ethereumjs-vm --ignore-scripts --include-dependencies --no-ci
4741
- run: npx lerna run --scope ethereumjs-vm --include-dependencies build
4842
working-directory: '${{ env.cwd }}'
49-
- run: 'npm run test:blockchain'
50-
env:
51-
CI: true
43+
- run: npm run test:blockchain
5244
working-directory: '${{ env.cwd }}'
5345
env:
5446
cwd: '${{github.workspace}}/packages/vm'
@@ -61,9 +53,7 @@ jobs:
6153
- uses: actions/checkout@v1
6254
- run: npx lerna bootstrap --scope ethereumjs-vm --ignore-scripts --include-dependencies --no-ci
6355
- run: npx lerna run --scope ethereumjs-vm --include-dependencies build
64-
- run: 'npm run test:state:slow'
65-
env:
66-
CI: true
56+
- run: npm run test:state:slow
6757
working-directory: '${{ env.cwd }}'
6858
env:
6959
cwd: '${{github.workspace}}/packages/vm'

packages/account/package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
"scripts": {
1515
"build": "ethereumjs-config-build",
1616
"prepublishOnly": "npm run test && npm run build",
17-
"coverage": "npx nyc npm run test",
1817
"docs:build": "typedoc --options typedoc.js",
1918
"format": "ethereumjs-config-format",
2019
"format:fix": "ethereumjs-config-format-fix",
@@ -23,7 +22,7 @@
2322
"tsc": "ethereumjs-config-tsc",
2423
"lint": "ethereumjs-config-lint",
2524
"lint:fix": "ethereumjs-config-lint-fix",
26-
"test": "npx tape -r ts-node/register test/*.spec.ts"
25+
"test": "nyc tape -r ts-node/register test/*.spec.ts"
2726
},
2827
"keywords": [
2928
"ethereum",

packages/block/package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"scripts": {
1111
"build": "ethereumjs-config-build",
1212
"prepublishOnly": "npm run test && npm run build",
13-
"coverage": "npx nyc npm run test:node",
1413
"docs:build": "typedoc --options typedoc.js",
1514
"format": "ethereumjs-config-format",
1615
"format:fix": "ethereumjs-config-format-fix",
@@ -20,7 +19,7 @@
2019
"lint": "ethereumjs-config-lint",
2120
"lint:fix": "ethereumjs-config-lint-fix",
2221
"test": "npm run test:node && npm run test:browser",
23-
"test:node": "npx tape -r ts-node/register test/*.spec.ts",
22+
"test:node": "nyc tape -r ts-node/register test/*.spec.ts",
2423
"test:browser:build": "tsc && cp test/testdata/*.json test-build/test/testdata",
2524
"test:browser": "npm run test:browser:build && karma start karma.conf.js"
2625
},

packages/blockchain/package.json

-3
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
"scripts": {
1111
"prepublishOnly": "npm run lint && npm run test && npm run build",
1212
"build": "ethereumjs-config-build",
13-
"coverage": "ethereumjs-config-coverage",
14-
"coveralls": "ethereumjs-config-coveralls",
1513
"docs:build": "typedoc --options typedoc.js",
1614
"format": "ethereumjs-config-format",
1715
"format:fix": "ethereumjs-config-format-fix",
@@ -59,7 +57,6 @@
5957
"@types/node": "^11.11.4",
6058
"@types/semaphore": "^1.1.0",
6159
"@types/tape": "^4.2.33",
62-
"coveralls": "^3.0.2",
6360
"nyc": "^13.0.1",
6461
"prettier": "^1.16.4",
6562
"tape": "^4.9.1",

packages/common/package.json

+1-6
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,14 @@
1010
"scripts": {
1111
"build": "ethereumjs-config-build",
1212
"prepublishOnly": "npm run test && npm run build",
13-
"coverage": "ethereumjs-config-coverage",
14-
"coveralls": "ethereumjs-config-coveralls",
1513
"format": "ethereumjs-config-format",
1614
"format:fix": "ethereumjs-config-format-fix",
1715
"tslint": "ethereumjs-config-tslint",
1816
"tslint:fix": "ethereumjs-config-tslint-fix",
1917
"tsc": "ethereumjs-config-tsc",
2018
"lint": "ethereumjs-config-lint",
2119
"lint:fix": "ethereumjs-config-lint-fix",
22-
"unitTests": "ts-node ./node_modules/tape/bin/tape ./tests/*.ts",
23-
"test": "npm run lint && npm run unitTests",
24-
"test:fix": "npm run lint:fix && npm run unitTests",
20+
"test": "nyc ts-node ./node_modules/tape/bin/tape ./tests/*.ts",
2521
"docs:build": "typedoc --options typedoc.js"
2622
},
2723
"repository": {
@@ -50,7 +46,6 @@
5046
"@ethereumjs/config-tslint": "^1.1.0",
5147
"@types/node": "^10.12.2",
5248
"@types/tape": "^4.2.33",
53-
"coveralls": "^3.0.1",
5449
"nyc": "^11.7.1",
5550
"prettier": "^1.15.3",
5651
"tape": "^4.9.2",

packages/tx/package.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
"scripts": {
1111
"build": "ethereumjs-config-build",
1212
"prepublishOnly": "npm run test && npm run build",
13-
"coverage": "ethereumjs-config-coverage",
14-
"coveralls": "ethereumjs-config-coveralls",
1513
"docs:build": "typedoc --options typedoc.js",
1614
"format": "ethereumjs-config-format",
1715
"format:fix": "ethereumjs-config-format-fix",
@@ -21,7 +19,7 @@
2119
"lint": "ethereumjs-config-lint",
2220
"lint:fix": "ethereumjs-config-lint-fix",
2321
"test": "npm run test:node",
24-
"test:node": "ts-node node_modules/tape/bin/tape ./test/index.ts",
22+
"test:node": "nyc ts-node node_modules/tape/bin/tape ./test/index.ts",
2523
"test:browser:build": "tsc && cp ./test/*.json test-build/test/",
2624
"test:browser": "npm run test:browser:build && karma start karma.conf.js"
2725
},
@@ -46,7 +44,6 @@
4644
"@types/tape": "^4.2.33",
4745
"browserify": "^16.2.3",
4846
"contributor": "^0.1.25",
49-
"coveralls": "^2.11.4",
5047
"ethereumjs-testing": "git+https://github.com/ethereumjs/ethereumjs-testing.git#v1.3.0",
5148
"istanbul": "^0.4.1",
5249
"karma": "^4.1.0",

0 commit comments

Comments
 (0)