Skip to content

Commit

Permalink
👷 Collect and upload coverage to Codecov (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
leon0399 authored Apr 18, 2024
1 parent ca1881c commit 37094de
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/actions-rs/grcov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
output-type: lcov
output-file: ./target/lcov.info
18 changes: 16 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
- master
- develop

env:
CARGO_TERM_COLOR: always

jobs:
check:
name: Check
Expand All @@ -33,13 +36,24 @@ jobs:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
toolchain: nightly
override: true
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/cargo@v1
with:
command: test
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]
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
if: "!contains(github.event.head_commit.message, '[skip codecov]')"
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: senseshift/rshapes

fmt:
name: Rustfmt
Expand Down

0 comments on commit 37094de

Please sign in to comment.