diff options
author | Wilfred Hughes <me@wilfred.me.uk> | 2023-09-30 22:22:05 -0700 |
---|---|---|
committer | Wilfred Hughes <me@wilfred.me.uk> | 2023-09-30 22:22:05 -0700 |
commit | 1d32b477c13d15d61cea7523dfa3dd61f86bf0ae (patch) | |
tree | 0f212bbbd3d15b34af697f1c8e0be05f2d79261b | |
parent | 6805939c6661a2f69f39e4d1789219c742debfa9 (diff) |
Restore coverage data in CI
This seems to have been accidentally removed in
fa20bd9d4466b11b3f180459353b14a87e866e83.
-rw-r--r-- | .github/workflows/coverage.yml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 000000000..76d4f6835 --- /dev/null +++ b/.github/workflows/coverage.yml @@ -0,0 +1,22 @@ +name: Coverage + +on: [pull_request, push] + +jobs: + coverage: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v3 + + - name: Install Rust + run: rustup toolchain install stable --component llvm-tools-preview + - name: Install cargo-llvm-cov + uses: taiki-e/install-action@cargo-llvm-cov + + - name: Generate code coverage + run: cargo +stable llvm-cov --all-features --workspace --lcov --output-path lcov.info + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v3 + with: + files: lcov.info + fail_ci_if_error: false |