Skip to content

Update thiserror requirement from 1.0.64 to 2.0.3 in the dependencies group #69

Update thiserror requirement from 1.0.64 to 2.0.3 in the dependencies group

Update thiserror requirement from 1.0.64 to 2.0.3 in the dependencies group #69

Workflow file for this run

name: ci
on:
pull_request:
push:
branches:
- master
workflow_dispatch:
jobs:
get-msrv:
name: Get declared MSRV from Cargo.toml
runs-on: ubuntu-latest
outputs:
msrv: ${{ steps.get_msrv.outputs.msrv }}
steps:
- name: Install ripgrep
run: sudo apt-get install -y ripgrep
- name: Checkout repository
uses: actions/checkout@v4
- name: Get MSRV
id: get_msrv
run: rg '^\s*rust-version\s*=\s*"(\d+(\.\d+){0,2})"' --replace 'msrv=$1' Cargo.toml >> "$GITHUB_OUTPUT"
check:
name: Run checks
runs-on: ubuntu-latest
needs: get-msrv
strategy:
fail-fast: false
matrix:
rust:
- ${{ needs.get-msrv.outputs.msrv }}
- stable
- nightly
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
components: clippy, rustfmt
- name: Check formatting
run: cargo fmt --all -- --check
- name: Run clippy
run: |
cargo clippy --workspace -- -D warnings
cargo clippy --workspace --no-default-features -- -D warnings
- name: Run tests
run: |
cargo test --workspace
cargo test --workspace --no-default-features