Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Coverage

on:
push:
pull_request:

env:
CARGO_TERM_COLOR: always

permissions:
contents: read

jobs:
coverage:
name: Coverage Report
runs-on: ubuntu-latest

steps:
- id: checkout
name: Checkout Repository
uses: actions/checkout@v4

- id: setup
name: Setup Toolchain
uses: dtolnay/rust-toolchain@stable

- id: cache
name: Enable Workflow Cache
uses: Swatinem/rust-cache@v2

- id: install-llvm-cov
name: Install cargo-llvm-cov
uses: taiki-e/install-action@v2
with:
tool: cargo-llvm-cov

- id: coverage-text
name: Generate Text Coverage Summary
env:
SKIP_AI_ENFORCEMENT: 1
run: cargo cov

- id: coverage-html
name: Generate HTML Coverage Report
env:
SKIP_AI_ENFORCEMENT: 1
run: cargo cov-html

- id: upload-coverage
name: Upload HTML Coverage Report
uses: actions/upload-artifact@v4
with:
name: coverage-html-report
path: target/llvm-cov/html/
retention-days: 30
Loading