Skip to content

Add possibility to use a different wrapper than Option #46

Add possibility to use a different wrapper than Option

Add possibility to use a different wrapper than Option #46

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
jobs:
fmt:
name: Run rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run cargo fmt
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- run: cargo fmt -- --check
clippy:
name: Run clippy
needs: [fmt]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run clippy
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- run: cargo clippy -- -D warnings
check:
name: Run cargo check with ${{ matrix.rust }} on ${{ matrix.os }}
needs: [clippy]
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
rust:
- 1.56.0
- stable
- beta
- nightly
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- run: cargo check
test:
name: Run tests with ${{ matrix.rust }} on ${{ matrix.os }}
needs: [check]
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
rust:
- 1.56.0
- stable
- beta
- nightly
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust}}
- run: cargo test