Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,14 @@ jobs:
command: |
echo "Running Build Tests"
make clean
make test
make test-coverage

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
file: coverage.out
token: ${{ secrets.CODECOV_TOKEN }}
slug: zeta-chain/node

- name: Build zetacored and zetaclientd
env:
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,14 @@ jobs:
command: |
echo "Running Build Tests"
make clean
make test
make test-coverage

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
file: coverage.out
token: ${{ secrets.CODECOV_TOKEN }}
slug: zeta-chain/node

- name: Build zetacored and zetaclientd
if: ${{ github.event.inputs.skip_checks != 'true' }}
Expand Down
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
* Added docker-compose and make commands for launching full nodes. `make mainnet-zetarpc-node` `make mainnet-bitcoind-node`
* Made adjustments to the docker-compose for launching mainnet full nodes to include examples of using the docker images build from the docker image build pipeline.
* [1736](https://github.com/zeta-chain/node/pull/1736) - chore: add Ethermint endpoints to OpenAPI
* [1781](https://github.com/zeta-chain/node/pull/1781) - add codecov coverage report in CI

### Features

Expand Down
74 changes: 74 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
coverage:
round: down
precision: 2
status:
project:
default:
threshold: 1% # allow this much decrease on project
zetacore:
if_ci_failed: error
target: 60%
flags:
- zetacore
zetaclient:
if_ci_failed: error
target: 60%
flags:
- zetaclient
common:
if_ci_failed: error
target: 60%
flags:
- common

comment:
layout: "reach, diff, files"
behavior: default
require_changes: true

flags:
zetacore:
carryforward: true
paths:
- "x/"
zetaclient:
carryforward: true
paths:
- "zetaclient/"
common:
carryforward: true
paths:
- "common/"

ignore:
- "x/**/client/"
- "x/**/keeper/keeper.go"
- "x/**/keeper/msg_server.go"
- "x/**/keeper/grpc_query_params.go"
- "x/**/types/codec.go"
- "x/**/types/errors.go"
- "x/**/types/keys.go"
- "x/**/types/key_*.go"
- "x/**/types/types.go"
- "x/**/types/expected_keepers.go"
- "x/**/module.go"
- "x/**/module_simulation.go"
- "x/**/simulation/"
- "*.proto"
- "*.md"
- "*.yml"
- "*.yaml"
- "*.pb.go"
- "*.pb.gw.go"
- "*.json"
- ".github/"
- "app/"
- "cmd/"
- "contrib/"
- "docs/"
- "rpc/"
- "proto/"
- "scripts/"
- "server/"
- "testutil/"
- "typescript/"