Skip to content

Commit

Permalink
chore(all): integrate codecov (#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberhorsey authored Nov 17, 2022
1 parent 519a4a7 commit 036e022
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 5 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/golang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
working-directory: ./packages/relayer
args: --config=.golangci.yml

build:
test:
runs-on: ubuntu-latest
needs: lint
steps:
Expand All @@ -44,4 +44,10 @@ jobs:

- name: relayer - Unit Tests
working-directory: ./packages/relayer
run: go test ./... -count=1
run: go test ./... -count=1 -coverprofile=coverage.txt -covermode=atomic

- name: relayer - Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: ./packages/relayer/coverage.txt
flags: relayer
8 changes: 7 additions & 1 deletion .github/workflows/solidity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- name: protocol - Unit Tests
working-directory: ./packages/protocol
run: pnpm install && pnpm clean && pnpm test && pnpm test:integration && pnpm export:abi
run: pnpm install && pnpm clean && pnpm test:coverage && pnpm test:integration && pnpm export:abi

- name: protocol - Generate Genesis
working-directory: ./packages/protocol
Expand All @@ -59,3 +59,9 @@ jobs:
- name: protocol - Deploy L1 Contracts
working-directory: ./packages/protocol
run: pnpm deploy:hardhat

- name: protocol - Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
directory: ./packages/protocol/coverage
flags: protocol
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

[![Solidity](https://github.com/taikochain/taiko-mono/actions/workflows/solidity.yml/badge.svg)](https://github.com/taikochain/taiko-mono/actions/workflows/solidity.yml)

[![Relayer](https://codecov.io/gh/taikochain/taiko-mono/branch/main/graph/badge.svg?token=E468X2PTJC&flag=relayer)](https://codecov.io/gh/taikochain/taiko-mono)

[![Protocol](https://codecov.io/gh/taikochain/taiko-mono/branch/main/graph/badge.svg?token=E468X2PTJC&flag=protocol)](https://codecov.io/gh/taikochain/taiko-mono)

<!-- PROJECT LOGO -->
<br />
<div align="center">
Expand Down
3 changes: 3 additions & 0 deletions packages/protocol/.solcover.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ module.exports = {
"test/libs/TestLibReceiptDecoder.sol", //integration tests
"test/thirdparty/TestLibBlockHeaderDecoder.sol", // assembly too long
],
mocha:{
grep: '^[^integration]'
}
};
3 changes: 1 addition & 2 deletions packages/relayer/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
.env
.test.env
main
coverage/profile.cov
coverage/gitlab.xml
coverage.txt

# Local .terraform directories
.terraform
Expand Down

0 comments on commit 036e022

Please sign in to comment.