Skip to content

Commit

Permalink
chore: add llvm-cov
Browse files Browse the repository at this point in the history
  • Loading branch information
yi-sun committed Oct 30, 2024
1 parent e02416f commit 89ddc38
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Coverage

on:
push:
branches: ["main"]
pull_request:
branches: ["**"]

jobs:
coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install Rust toolchain (nightly)
run: rustup toolchain install nightly --component llvm-tools-preview

- name: Install cargo-llvm-cov
run: cargo install cargo-llvm-cov

- name: Run coverage
run: cargo llvm-cov --report-html --lcov --output-path=coverage

- name: Upload coverage report
uses: actions/upload-artifact@v3
with:
name: coverage-report
path: coverage/

0 comments on commit 89ddc38

Please sign in to comment.