Skip to content

Commit

Permalink
test: setup codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
hougesen committed Feb 12, 2024
1 parent 23acc05 commit ebdd15d
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:
- main

jobs:
coverage:
name: coverage
runs-on: ubuntu-latest
env:
CARGO_TERM_COLOR: always
steps:
- name: checkout_repository
uses: actions/checkout@v4

- name: install_rust_nightly
uses: dtolnay/rust-toolchain@stable

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

- name: generate_code_coverage
run: cargo llvm-cov --all-features --locked --lcov --output-path lcov.info

- name: upload_code_coverage
uses: codecov/codecov-action@v4
with:
files: lcov.info

0 comments on commit ebdd15d

Please sign in to comment.