Skip to content

Commit

Permalink
coverage that hopefully actually works
Browse files Browse the repository at this point in the history
  • Loading branch information
actioninja committed Mar 31, 2023
1 parent 88fc75f commit 8812997
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/coverage.yml
Expand Up @@ -2,22 +2,26 @@ name: Run Coverage

on:
workflow_dispatch:
pull_request:
push:
branches:
- master

jobs:
coverage:
name: Run Coverage
runs-on: ubuntu-latest
container:
image: xd009642/tarpaulin:develop-nightly
options: --security-opt seccomp=unconfined
env:
CARGO_TERM_COLOR: always
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Generate Coverage
run: "cargo +nightly tarpaulin --verbose --workspace --exclude files coverage/*.rs --out Lcov --output-dir coverage"
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Install cargo-tarpaulin
uses: taiki-e/install-action@cargo-llvm-cov
- name: Generate code coverage
run: |
mkdir coverage
cargo llvm-cov --all-features --workspace --lcov --output-path ./coverage/lcov.info
- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@master
with:
Expand Down

0 comments on commit 8812997

Please sign in to comment.