Bump all deps #74
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: 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 |