Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Add README coverage badge #64

Merged
merged 3 commits into from
Jun 30, 2023
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
10 changes: 6 additions & 4 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,19 @@ jobs:
toolchain: 1.70.0
target: wasm32-unknown-unknown
override: true

- name: Install tarpaulin
uses: actions-rs/cargo@v1
with:
command: install
args: cargo-tarpaulin --version 0.25.2

- run: make build

- name: Run code coverage check with tarpaulin
uses: actions-rs/cargo@v1
with:
command: tarpaulin
args: --workspace --timeout 120
args: --workspace --timeout 120 --out Xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./target/tarpaulin/coverage.json
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ target/
# Auto-gen
.cargo-ok
/artifacts/

cobertura.xml
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to
### Added

- Curve: Add fully functional implementation of distribution curve that handles 3 types (constant, linear and piecewise linear) ([#62])
- CI: Upload CI results to codecov and implement coverage badge in the readme ([#64])

### Changed

Expand All @@ -22,6 +23,7 @@ and this project adheres to
[#58]: https://github.com/Phoenix-Protocol-Group/phoenix-contracts/pull/58
[#62]: https://github.com/Phoenix-Protocol-Group/phoenix-contracts/pull/62
[#63]: https://github.com/Phoenix-Protocol-Group/phoenix-contracts/pull/63
[#64]: https://github.com/Phoenix-Protocol-Group/phoenix-contracts/pull/64

## [0.3.1] - 2023-06-27

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![codecov](https://codecov.io/gh/Phoenix-Protocol-Group/phoenix-contracts/branch/main/graph/badge.svg?token=BJMG2IINQB)](https://codecov.io/gh/Phoenix-Protocol-Group/phoenix-contracts)

# Phoenix DEX Smart Contracts
This repository contains the Rust source code for the smart contracts of the Phoenix DEX.

Expand Down