Skip to content

Commit

Permalink
try alekitto/grcov
Browse files Browse the repository at this point in the history
  • Loading branch information
leshow committed Dec 1, 2024
1 parent 2ca6bd2 commit e110482
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ jobs:
matrix:
rust:
- nightly
env:
CARGO_INCREMENTAL: "0"
RUSTFLAGS: "-Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort"
RUSTDOCFLAGS: "-Cpanic=abort"
SQLX_OFFLINE: true
steps:
- name: Checkout sources
uses: actions/checkout@v2
Expand All @@ -127,21 +132,18 @@ jobs:
toolchain: ${{ matrix.rust }}
override: true
components: llvm-tools-preview
- id: tools
name: Install Tools
uses: taiki-e/install-action@v2
with:
tool: grcov
- name: Run coverage
uses: actions-rs/cargo@v1
uses: alekitto/[email protected]
id: coverage
with:
command: test
args: --all-features --exclude register_derive_impl --workspace --no-fail-fast
env:
CARGO_INCREMENTAL: "0"
RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -Cinstrument-coverage -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests"
RUSTDOCFLAGS: "-Zprofile -Ccodegen-units=1 -Cinstrument-coverage -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests"
SQLX_OFFLINE: true
- name: rust-grcov
id: coverage
uses: actions-rs/[email protected]
env:
SQLX_OFFLINE: true
NODE_COVERALLS_DEBUG: true
- name: Coveralls upload
uses: coverallsapp/github-action@master
Expand Down

0 comments on commit e110482

Please sign in to comment.