Skip to content

Commit

Permalink
added coverage badge and CI
Browse files Browse the repository at this point in the history
  • Loading branch information
zommiommy committed Aug 17, 2024
1 parent 106ed21 commit 9954426
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,25 @@ jobs:
working-directory: ./mem_dbg
run: for example in examples/*.rs ; do cargo run --example "$(basename "${example%.rs}")" ; done
- name: Run clippy
run: cargo clippy #-- -Dclippy::all -Dclippy::cargo
run: cargo clippy #-- -Dclippy::all -Dclippy::cargo

coverage:
needs: build
name: coverage
runs-on: ubuntu-latest
container:
image: xd009642/tarpaulin:develop-nightly
options: --security-opt seccomp=unconfined
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Generate code coverage
run: |
cargo +nightly tarpaulin --verbose --engine llvm --all-features --workspace --out Lcov
- name: Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: "lcov.info"
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
[![](https://tokei.rs/b1/github/zommiommy/mem_dbg-rs?type=Rust,Python)](https://github.com/zommiommy/mem_dbg-rs)
[![Latest version](https://img.shields.io/crates/v/mem_dbg.svg)](https://crates.io/crates/mem_dbg)
[![Documentation](https://docs.rs/mem_dbg/badge.svg)](https://docs.rs/mem_dbg)
[![Coverage Status](https://coveralls.io/repos/github/zommiommy/mem_dbg-rs/badge.svg?branch=main)](https://coveralls.io/github/zommiommy/mem_dbg-rs?branch=main)

Traits and associated procedural macros to display recursively the layout and
memory usage of a value.
Expand Down

0 comments on commit 9954426

Please sign in to comment.