Bump codecov/codecov-action from 4 to 5 #85
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
name: http-cache-quickcache | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
workflow_dispatch: | |
env: | |
CARGO_TERM_COLOR: always | |
concurrency: | |
group: ${{ github.ref }}-http-cache-quickcache | |
cancel-in-progress: true | |
defaults: | |
run: | |
working-directory: ./http-cache-quickcache | |
jobs: | |
fmt: | |
name: Check formatting | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: "rustfmt" | |
- run: cargo fmt -- --check | |
test: | |
name: Test stable on ${{ matrix.os }} | |
needs: [fmt] | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- windows-latest | |
- macOS-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- run: | | |
cargo test --all-targets --all-features | |
clippy: | |
name: Check clippy | |
needs: [fmt, test] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: "clippy" | |
- run: | | |
cargo clippy --lib --tests --all-targets --all-features -- -D warnings | |
docs: | |
name: Build docs | |
needs: [fmt, test] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@nightly | |
env: | |
RUSTFLAGS: --cfg docsrs | |
RUSTDOCFLAGS: --cfg docsrs -Dwarnings | |
- run: cargo doc --no-deps --document-private-items |