Skip to content

test: setup codecov (#167) #3

test: setup codecov (#167)

test: setup codecov (#167) #3

Workflow file for this run

name: coverage
on:
push:
- main
jobs:
coverage:
name: coverage
runs-on: ubuntu-latest
env:
CARGO_TERM_COLOR: always
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Install cargo-llvm-cov
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
env:
token: ${{ secrets.CODECOV_TOKEN }}
slug: hougesen/hitt