Skip to content

Update Rust crate clap to v4.5.55 #9221

Update Rust crate clap to v4.5.55

Update Rust crate clap to v4.5.55 #9221

Workflow file for this run

name: Check and Test
on:
push:
schedule:
- cron: 15 */6 * * *
jobs:
check:
name: Check the code
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust: [stable, beta]
steps:
- name: Install the appropriate Rust toolchain
run: |
rustup toolchain install ${{ matrix.rust }}
rustup default ${{ matrix.rust }}
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Run rustfmt
run: |
rustup component add rustfmt
cargo fmt --all -- --check
- name: Run clippy
run: |
rustup component add clippy
cargo clippy --workspace --all-features --all-targets
test:
name: Test the code
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust: [stable, beta, nightly, 1.74]
steps:
- name: Install the appropriate Rust toolchain
run: |
rustup toolchain install ${{ matrix.rust }}
rustup default ${{ matrix.rust }}
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Run cargo test
run: |
cargo test --workspace --all-features --all-targets --no-fail-fast
coverage:
name: Measure test coverage
runs-on: ubuntu-latest
strategy:
matrix:
rust: [stable]
steps:
- name: Install the appropriate Rust toolchain
run: |
rustup toolchain install ${{ matrix.rust }} --component llvm-tools-preview
rustup default ${{ matrix.rust }}
- name: Install cargo-llvm-cov
run: cargo install cargo-llvm-cov --version=0.4.9
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Run cargo-llvm-cov
run: >
cargo llvm-cov
--all-features
--all-targets
--workspace
--lcov
--output-path lcov.info
- name: Upload coverage
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: bash <(curl -s https://codecov.io/bash) -X gcov
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: lcov.info
path: ./lcov.info