Skip to content

Merge pull request #13 from Dalvany/dependabot/github_actions/codecov… #39

Merge pull request #13 from Dalvany/dependabot/github_actions/codecov…

Merge pull request #13 from Dalvany/dependabot/github_actions/codecov… #39

Workflow file for this run

name: Code coverage
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
code-coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install components
run: rustup component add llvm-tools-preview
- uses: taiki-e/install-action@cargo-llvm-cov
- name: Code coverage
run: cargo llvm-cov --lcov --output-path lcov.info
- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
files: lcov.info
fail_ci_if_error: true