bgpkit-parser 0.16.0

MRT/BGP/BMP data processing library
Documentation
name: codecov
on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]
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