From 48ab46da89e27f12d426b8eb919f3fb678a3bba0 Mon Sep 17 00:00:00 2001 From: danieleades <33452915+danieleades@users.noreply.github.com> Date: Thu, 29 Jun 2023 01:22:17 +0100 Subject: [PATCH] Add coverage workflow (#22) --- .github/workflows/coverage.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/coverage.yml diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 0000000..d1dc37b --- /dev/null +++ b/.github/workflows/coverage.yml @@ -0,0 +1,20 @@ +on: + push: + branches: [master] + pull_request: + +name: Code Coverage + +jobs: + coverage: + name: coverage + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: dtolnay/rust-toolchain@nightly + - uses: taiki-e/install-action@cargo-llvm-cov + - run: cargo llvm-cov --doctests --lcov --output-path lcov.info + - uses: codecov/codecov-action@v3 + with: + files: lcov.info + fail_ci_if_error: true