Skip to content

Commit 7a2b5ab

Browse files
committed
ci: add code coverage
1 parent 805396a commit 7a2b5ab

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,20 @@ env:
1010
CARGO_TERM_COLOR: always
1111

1212
jobs:
13-
lint:
13+
coverage:
1414
runs-on: ubuntu-latest
1515

1616
steps:
1717
- uses: actions/checkout@v4
18+
env:
19+
fetch-depth: 0
1820

19-
- name: Clippy
20-
run: |
21-
rustup component add clippy
22-
cargo clippy --all-targets --all-features
23-
24-
- name: Coverage
21+
- name: Push to coveralls.io
22+
env:
23+
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
2524
run: |
2625
cargo install cargo-tarpaulin
27-
cargo tarpaulin --all-targets --all-features --out stdout --engine llvm
26+
cargo tarpaulin --all-targets --all-features --ciserver github-ci --coveralls $COVERALLS_REPO_TOKEN --engine llvm
2827
2928
test:
3029
runs-on: ubuntu-latest
@@ -46,3 +45,8 @@ jobs:
4645

4746
- name: Run tests (All Features)
4847
run: cargo test --verbose --all-targets --all-features
48+
49+
- name: Clippy (All Features)
50+
run: |
51+
rustup component add clippy
52+
cargo clippy --all-targets --all-features

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Linked Content Addressed Storage
22

3+
[![Coverage Status](https://coveralls.io/repos/github/TimelessOS/LCAS/badge.svg?branch=main)](https://coveralls.io/github/TimelessOS/LCAS?branch=main)
4+
35
A simple yet complex method of storing large directory structures with duplicate files
46

57
## Examples

0 commit comments

Comments
 (0)