Skip to content

Commit

Permalink
Merge pull request #35 from fjarri/coveralls
Browse files Browse the repository at this point in the history
Try out Coveralls for coverage
  • Loading branch information
fjarri authored Oct 19, 2024
2 parents ec7d1e3 + 47c3880 commit d9a98a8
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,27 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info
fail_ci_if_error: true
fail_ci_if_error: false

coveralls:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@v1
with:
profile: minimal
toolchain: stable
target: x86_64-unknown-linux-gnu
override: true
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Generate code coverage
run: cargo llvm-cov --workspace --lcov --output-path lcov.info
- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@v2
with:
files: lcov.info
fail_on_error: true

tests:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
![License][license-image]
[![Build Status][build-image]][build-link]
[![Coverage][coverage-image]][coverage-link]
[![Coveralls][coveralls-image]][coveralls-link]


*The body is round*

Expand Down Expand Up @@ -38,3 +40,5 @@ We try to find the balance between supporting the majority of protocols and keep
[build-link]: https://github.com/entropyxyz/manul/actions?query=workflow%3Aci
[coverage-image]: https://codecov.io/gh/entropyxyz/manul/branch/master/graph/badge.svg
[coverage-link]: https://codecov.io/gh/entropyxyz/manul
[coveralls-image]: https://coveralls.io/repos/github/entropyxyz/manul/badge.svg?branch=master
[coveralls-link]: https://coveralls.io/github/entropyxyz/manul?branch=master

0 comments on commit d9a98a8

Please sign in to comment.