Skip to content

Update dependencies #49

Update dependencies

Update dependencies #49

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
jobs:
check:
name: Check (${{ matrix.rust }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust: ["1.88.0", stable]
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
components: clippy
- uses: dtolnay/rust-toolchain@nightly
if: matrix.rust == 'stable'
with:
components: rustfmt, clippy
- uses: actions/cache@v5
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ matrix.rust }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-${{ matrix.rust }}-
- name: Check formatting
if: matrix.rust == 'stable'
run: cargo +nightly fmt --check
- name: Clippy
run: cargo clippy -- -D warnings
- name: Run tests
run: cargo test
- name: Run tests (all features)
run: cargo test --all-features