Skip to content

build(deps): bump clap from 4.3.24 to 4.4.5 #236

build(deps): bump clap from 4.3.24 to 4.4.5

build(deps): bump clap from 4.3.24 to 4.4.5 #236

Workflow file for this run

name: Rust
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
env:
CARGO_TERM_COLOR: always
jobs:
test:
strategy:
matrix:
rust:
- stable
- beta
- nightly
- msrv
pinned: [false]
include:
- rust: 1.70.0
pinned: true
name: Tests (${{ matrix.rust }})
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.rust == 'nightly' }}
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Get Rust version
run: |
if [ "${{ matrix.rust }}" = msrv ]; then
MSRV=$(grep rust-version Cargo.toml | awk '{print $3}' | tr -d '"')
echo "RUST=$MSRV" >> $GITHUB_ENV
else
echo "RUST=${{ matrix.rust }}" >> $GITHUB_ENV
fi
- name: Install toolchain
uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ env.RUST }}
components: rustfmt, clippy
- name: Build
run: cargo build
- name: Test
run: cargo test --verbose --all
- name: rustfmt check
run: cargo fmt -- --check -l
if: matrix.pinned
- name: Clippy
run: cargo clippy -- -D warnings
if: matrix.pinned