Add test for the HttpService::list_routes method/cli command #26
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: | |
- main | |
name: Test coverage | |
jobs: | |
coverage: | |
name: Collect test coverage | |
runs-on: ubuntu-latest | |
env: | |
RUSTFLAGS: -D warnings | |
CARGO_TERM_COLOR: always | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: Swatinem/rust-cache@v2 | |
- uses: taiki-e/install-action@nextest | |
- uses: taiki-e/install-action@cargo-llvm-cov | |
- name: Collect coverage data | |
# Generate coverage report using nextest. | |
# Not generating report using doctest data currently as it requires nightly rust. | |
# See https://nexte.st/book/test-coverage for how to use doctest data once it works on | |
# stable rust. | |
run: | | |
cargo llvm-cov --no-report nextest --all-features | |
cargo llvm-cov report --lcov --output-path lcov.info | |
- name: Upload coverage data to codecov | |
uses: codecov/codecov-action@v4 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
with: | |
files: lcov.info |