Skip to content

Commit

Permalink
feat: use tarpaulin
Browse files Browse the repository at this point in the history
  • Loading branch information
iharvarauka committed Sep 23, 2024
1 parent 43894f7 commit 0ee883b
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,16 @@ name: coverage

on: [push, pull_request]

env:
RUST_BACKTRACE: 1

jobs:
coverage:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4

- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: llvm-tools-preview

- name: Download grcov
run: |
mkdir -p "${HOME}/.local/bin"
curl -sL https://github.com/mozilla/grcov/releases/download/v0.8.10/grcov-x86_64-unknown-linux-gnu.tar.bz2 | tar jxf - -C "${HOME}/.local/bin"
echo "$HOME/.local/bin" >> $GITHUB_PATH
- uses: dtolnay/rust-toolchain@stable

- uses: actions-rs/cargo@v1
with:
command: xtask
args: coverage
- name: coverage
run: cargo tarpaulin --engine llvm --follow-exec --post-test-delay 10

0 comments on commit 0ee883b

Please sign in to comment.