Skip to content

Commit

Permalink
Add code coverage step to circle CI pipeline, add coveralls orb, upda…
Browse files Browse the repository at this point in the history
…te circleci config version
  • Loading branch information
Marccio Silva committed Aug 13, 2021
1 parent 591403c commit dca1483
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 4 deletions.
12 changes: 10 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
version: 2
version: 2.1
orbs:
coveralls: coveralls/[email protected]
jobs:
build:
working_directory: ~/repo
Expand All @@ -23,6 +25,13 @@ jobs:
command: |
cd bridge
npm ci
- run:
name: bridge coverage
command: |
cd bridge
npm run coverage
- coveralls/upload
path_to_lcov: "./bridge/coverage"
- run:
name: install federator dependencies
command: |
Expand Down Expand Up @@ -57,4 +66,3 @@ jobs:
command: |
cd bridge
npm test
63 changes: 63 additions & 0 deletions bridge/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions bridge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,23 @@
"@truffle/hdwallet-provider": "^1.4.0",
"chalk": "^4.1.0",
"eth-gas-reporter": "^0.2.22",
"solhint": "^3.3.6",
"npm-force-resolutions": "0.0.3",
"resolve": "^1.13.0",
"solhint": "^3.3.6",
"solidity-coverage": "^0.7.16",
"table": "^6.0.3",
"truffle": "^5.3.9",
"truffle-assertions": "^0.9.2",
"truffle-plugin-verify": "^0.5.9"
},
"devDependencies": {
"web3": ">=1.0.0",
"axios": ">=0.21.1",
"coveralls": "^3.1.1",
"css-what": ">=5.0.1",
"elliptic": ">=6.5.4",
"glob-parent": ">=5.1.2",
"node-fetch": ">=2.6.1",
"web3": ">=1.0.0",
"y18n": ">=5.0.5"
},
"resolutions": {
Expand Down

0 comments on commit dca1483

Please sign in to comment.