Bump clap from 4.5.30 to 4.5.31 #709
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: Cargo Build & Test | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
coverage: | |
name: Build and test with coverage | |
runs-on: ubuntu-latest | |
# Longer timeout because this job involves more steps | |
timeout-minutes: 20 | |
env: | |
# Make warnings fatal | |
RUSTDOCFLAGS: -D warnings | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Check docs | |
run: cargo doc --no-deps --document-private-items | |
# Continue even if docs fail | |
- run: cargo build --verbose | |
if: always() | |
- run: cargo test --verbose | |
- name: Install cargo-llvm-cov | |
run: cargo install cargo-llvm-cov | |
- name: Generate code coverage | |
run: | | |
cargo llvm-cov --codecov --output-path codecov.json | |
- name: Upload to codecov.io | |
uses: codecov/codecov-action@v5 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
fail_ci_if_error: true | |
build_and_test: | |
name: Build and test | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 15 | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-latest, macos-latest] | |
toolchain: | |
- stable | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
- run: cargo build --verbose | |
- run: cargo test --verbose |