Skip to content

Commit 0144369

Browse files
committed
Coveralls.
1 parent 6c4ef42 commit 0144369

File tree

4 files changed

+75
-3
lines changed

4 files changed

+75
-3
lines changed

.github/workflows/myDAO.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ jobs:
4949

5050
- name: Run Test Coverage
5151
run: truffle run coverage
52-
52+
53+
- name: Coveralls
54+
uses: coverallsapp/github-action@master
55+
with:
56+
github-token: ${{ secrets.GITHUB_TOKEN }}
57+
5358
- name: Run and Check Solhint
5459
run: npx solhint 'contracts/**/*.sol' -f stylish

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# MyDAO
22

33
[![.github/workflows/ci.yml](https://github.com/ehsomma/mydao/actions/workflows/myDAO.yml/badge.svg)](https://github.com/ehsomma/mydao/actions/workflows/myDAO.yml)
4+
[![Coverage Status](https://coveralls.io/repos/github/ehsomma/mydao/badge.svg?branch=master)](https://coveralls.io/github/ehsomma/mydao?branch=master)
45
[![GitHub Issues](https://img.shields.io/github/issues/ehsomma/mydao)](https://github.com/ehsomma/mydao/issues)
5-
[![License](https://img.shields.io/badge/license-MIT-informational)](/LICENSE)
6+
[![License](https://img.shields.io/badge/license-MIT-informational)](/LICENSE)
7+
8+
In progress...

package-lock.json

Lines changed: 63 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"scripts": {
1010
"test": "truffle test --reporter eth-gas-reporter",
11-
"coverage": "truffle run coverage",
11+
"coverage": "truffle run coverage && cat coverage/lcov.info | coveralls",
1212
"lint": "solhint --max-warnings 0 \"contracts/**/*.sol\" -f stylish"
1313
},
1414
"keywords": [
@@ -23,6 +23,7 @@
2323
"chai": "^4.3.6",
2424
"chai-as-promised": "^7.1.1",
2525
"chai-bn": "^0.3.1",
26+
"coveralls": "^3.1.1",
2627
"eth-gas-reporter": "^0.2.24",
2728
"solidity-coverage": "^0.7.17",
2829
"truffle-assertions": "^0.9.2"

0 commit comments

Comments
 (0)