Skip to content

Commit

Permalink
ci: add codecov coverage upload as part of the CI (#1781)
Browse files Browse the repository at this point in the history
* codecov config

* update CI

* changelog

* try removing env

* add step to publish release

* coverage typ
  • Loading branch information
lumtis authored Feb 21, 2024
1 parent 54f364a commit a464a54
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 2 deletions.
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/[email protected]
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/[email protected]
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/"

0 comments on commit a464a54

Please sign in to comment.