Skip to content

Merge pull request #183 from bgpkit/feature/local_only #76

Merge pull request #183 from bgpkit/feature/local_only

Merge pull request #183 from bgpkit/feature/local_only #76

Workflow file for this run

name: codecov
on:
push:
branches: [ main ]
paths:
- '**.rs'
pull_request:
branches: [ main ]
paths:
- '**.rs'
jobs:
# Run code coverage using cargo-llvm-cov then upload to codecov.io
job_code_coverage:
runs-on: ubuntu-latest
env:
CARGO_TERM_COLOR: always
steps:
- uses: actions/checkout@v4
- name: Install Rust
run: rustup update stable && rustup install nightly
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Generate code coverage
run: cargo +nightly llvm-cov --all-features --workspace --lcov --doctests --output-path lcov.info
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
files: lcov.info
fail_ci_if_error: true