Skip to content

4.1.0

4.1.0 #48

Workflow file for this run

name: Test
on:
pull_request:
push:
branches:
- main
jobs:
test:
strategy:
fail-fast: false
matrix:
platform:
- macos
- ubuntu
- windows
toolchain:
- stable
- 1.68.0
features:
- default
- with-tokio
name: "Test on ${{ matrix.platform }} with Rust ${{ matrix.toolchain }} (feat: ${{ matrix.features }})"
runs-on: "${{ matrix.platform }}-latest"
steps:
- uses: actions/checkout@v3
- name: Configure Rust
run: |
rustup toolchain install --profile minimal --no-self-update ${{ matrix.toolchain }}
rustup default ${{ matrix.toolchain }}
rustup component add clippy
- name: Configure caching
uses: actions/cache@v3
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
- run: cargo test --features ${{ matrix.features }} --all-targets
- run: cargo clippy --features ${{ matrix.features }}
formatting:
name: Fmt check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Configure Rust
run: |
rustup toolchain install --profile minimal --no-self-update stable
rustup default stable
- run: cargo fmt --check