Skip to content

Commit 7747a9b

Browse files
authored
chore(ci): upload code coverage to coveralls.io (#1146)
* chore(ci): upload code coverage to coveralls.io * chore: enable coverage reporting on rosetta-cli tests
1 parent 184fd40 commit 7747a9b

File tree

2 files changed

+66
-2
lines changed

2 files changed

+66
-2
lines changed

.github/workflows/ci.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,14 @@ jobs:
160160
uses: codecov/codecov-action@v2
161161
if: always()
162162

163+
- name: Upload coverage to Coveralls
164+
uses: coverallsapp/github-action@master
165+
if: always()
166+
with:
167+
github-token: ${{ secrets.github_token }}
168+
flag-name: run-${{ github.job }}
169+
parallel: true
170+
163171
test-bns:
164172
runs-on: ubuntu-latest
165173
steps:
@@ -211,6 +219,14 @@ jobs:
211219
uses: codecov/codecov-action@v2
212220
if: always()
213221

222+
- name: Upload coverage to Coveralls
223+
uses: coverallsapp/github-action@master
224+
if: always()
225+
with:
226+
github-token: ${{ secrets.github_token }}
227+
flag-name: run-${{ github.job }}
228+
parallel: true
229+
214230
test-rosetta:
215231
runs-on: ubuntu-latest
216232
steps:
@@ -262,6 +278,14 @@ jobs:
262278
uses: codecov/codecov-action@v2
263279
if: always()
264280

281+
- name: Upload coverage to Coveralls
282+
uses: coverallsapp/github-action@master
283+
if: always()
284+
with:
285+
github-token: ${{ secrets.github_token }}
286+
flag-name: run-${{ github.job }}
287+
parallel: true
288+
265289
test-rosetta-cli-data:
266290
runs-on: ubuntu-latest
267291
steps:
@@ -321,6 +345,14 @@ jobs:
321345
uses: codecov/codecov-action@v2
322346
if: always()
323347

348+
- name: Upload coverage to Coveralls
349+
uses: coverallsapp/github-action@master
350+
if: always()
351+
with:
352+
github-token: ${{ secrets.github_token }}
353+
flag-name: run-${{ github.job }}
354+
parallel: true
355+
324356
test-rosetta-cli-construction:
325357
runs-on: ubuntu-latest
326358
steps:
@@ -380,6 +412,14 @@ jobs:
380412
uses: codecov/codecov-action@v2
381413
if: always()
382414

415+
- name: Upload coverage to Coveralls
416+
uses: coverallsapp/github-action@master
417+
if: always()
418+
with:
419+
github-token: ${{ secrets.github_token }}
420+
flag-name: run-${{ github.job }}
421+
parallel: true
422+
383423
test-tokens:
384424
runs-on: ubuntu-latest
385425
steps:
@@ -417,6 +457,30 @@ jobs:
417457
uses: codecov/codecov-action@v2
418458
if: always()
419459

460+
- name: Upload coverage to Coveralls
461+
uses: coverallsapp/github-action@master
462+
if: always()
463+
with:
464+
github-token: ${{ secrets.github_token }}
465+
flag-name: run-${{ github.job }}
466+
parallel: true
467+
468+
upload-coveralls:
469+
runs-on: ubuntu-latest
470+
needs:
471+
- test
472+
- test-bns
473+
- test-rosetta
474+
- test-rosetta-cli-construction
475+
- test-rosetta-cli-data
476+
- test-tokens
477+
steps:
478+
- name: Coveralls Finished
479+
uses: coverallsapp/github-action@master
480+
with:
481+
github-token: ${{ secrets.github_token }}
482+
parallel-finished: true
483+
420484
build-publish:
421485
runs-on: ubuntu-latest
422486
needs:

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"dev:follower": "npm run devenv:build && concurrently npm:dev npm:devenv:follower",
1010
"test": "cross-env NODE_ENV=development jest --config ./jest.config.js --coverage --runInBand",
1111
"test:rosetta": "cross-env NODE_ENV=development jest --config ./jest.config.rosetta.js --coverage --runInBand",
12-
"test:rosetta-cli:data": "cross-env NODE_ENV=development STACKS_CHAIN_ID=0x80000000 jest --config ./jest.config.rosetta-cli-data.js --runInBand",
13-
"test:rosetta-cli:construction": "cross-env NODE_ENV=development STACKS_CHAIN_ID=0x80000000 jest --config ./jest.config.rosetta-cli-construction.js --runInBand",
12+
"test:rosetta-cli:data": "cross-env NODE_ENV=development STACKS_CHAIN_ID=0x80000000 jest --config ./jest.config.rosetta-cli-data.js --coverage --runInBand",
13+
"test:rosetta-cli:construction": "cross-env NODE_ENV=development STACKS_CHAIN_ID=0x80000000 jest --config ./jest.config.rosetta-cli-construction.js --coverage --runInBand",
1414
"test:bns": "cross-env NODE_ENV=development jest --config ./jest.config.bns.js --coverage --runInBand",
1515
"test:microblocks": "cross-env NODE_ENV=development jest --config ./jest.config.microblocks.js --coverage --runInBand",
1616
"test:tokens": "cross-env NODE_ENV=development jest --config ./jest.config.tokens.js --coverage --runInBand",

0 commit comments

Comments
 (0)