Skip to content

Commit 2a5bae6

Browse files
committed
add Codecov
1 parent f390e9f commit 2a5bae6

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/tests.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,14 @@ jobs:
1616
- name: Run tests
1717
working-directory: iOverlay
1818
run: cargo test
19+
- name: Install tarpaulin
20+
uses: taiki-e/install-action@v2
21+
with:
22+
tool: cargo-tarpaulin
23+
- name: Run coverage
24+
working-directory: iOverlay
25+
run: cargo tarpaulin --out Lcov
26+
- name: Upload coverage to Codecov
27+
uses: codecov/codecov-action@v4
28+
with:
29+
files: iOverlay/lcov.info

iOverlay/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[![crates.io version](https://img.shields.io/crates/v/i_overlay.svg)](https://crates.io/crates/i_overlay)
44
[![docs.rs docs](https://docs.rs/i_overlay/badge.svg)](https://docs.rs/i_overlay)
55
[![tests](https://github.com/iShape-Rust/iOverlay/actions/workflows/tests.yml/badge.svg)](https://github.com/iShape-Rust/iOverlay/actions/workflows/tests.yml)
6+
[![codecov](https://codecov.io/gh/iShape-Rust/iOverlay/branch/main/graph/badge.svg)](https://codecov.io/gh/iShape-Rust/iOverlay)
67

78
![Balloons](readme/balloons.svg)
89

0 commit comments

Comments
 (0)