Skip to content

Commit

Permalink
add test coverage workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleades committed Jan 13, 2024
1 parent 5a321ca commit 18811c1
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
on:
push:
branches: [master]
pull_request:

name: Code Coverage

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

- name: Install nightly toolchain
uses: dtolnay/rust-toolchain@nightly
with:
components: llvm-tools-preview

- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov

- name: Run llvm-cov
run: cargo llvm-cov --all-features --doctests --workspace --lcov --output-path lcov.info

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: lcov.info

0 comments on commit 18811c1

Please sign in to comment.