Skip to content

Add test for the HttpService::list_routes method/cli command #202

Add test for the HttpService::list_routes method/cli command

Add test for the HttpService::list_routes method/cli command #202

Workflow file for this run

name: Checks
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
# `cargo hack --each-feature` runs the given command for each feature, including "no features", "all features",
# and the `default` feature.
roadster_each_feature:
name: Each feature
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- uses: taiki-e/install-action@cargo-hack
- uses: taiki-e/install-action@nextest
- name: Test
run: cargo hack nextest run --no-fail-fast --each-feature --workspace
- name: Doc test
run: cargo hack test --doc --no-fail-fast --each-feature --workspace
- name: Check
run: cargo hack check --each-feature --no-dev-deps --workspace
- name: Clippy
run: cargo hack clippy --workspace --all-targets --each-feature -- -D warnings
check_formatting:
name: Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- name: Formatting
run: cargo fmt --all --check
check_docs:
name: Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- name: Docs
env:
RUSTDOCFLAGS: "-D rustdoc::all -A rustdoc::private_intra_doc_links"
run: cargo doc --all-features