Skip to content

Commit

Permalink
ci: Add coverage collection configuration (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpedroh authored Nov 8, 2023
1 parent 2323375 commit 44d7159
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,22 @@ jobs:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
toolchain: nightly
override: true
- uses: actions-rs/cargo@v1
with:
command: test
args: --all-features
args: --all-features --no-fail-fast
env:
CARGO_INCREMENTAL: '0'
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
- uses: actions-rs/[email protected]
id: coverage
with:
config: grcov.yml
- name: Coveralls upload
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ${{ steps.coverage.outputs.report }}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# generic-merge

[![CI](https://github.com/jpedroh/generic-merge/actions/workflows/ci.yml/badge.svg)](https://github.com/jpedroh/generic-merge/actions/workflows/ci.yml)
[![Coverage Status](https://coveralls.io/repos/github/jpedroh/generic-merge/badge.svg)](https://coveralls.io/github/jpedroh/generic-merge)

An experiment to build a generic semi-structure merge algorithm
6 changes: 6 additions & 0 deletions grcov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
branch: true
ignore-not-existing: true
llvm: true
filter: covered
output-type: lcov
output-path: ./lcov.info

0 comments on commit 44d7159

Please sign in to comment.