5.0.1 #58
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: 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 | |