name: Checks
on: [push]
jobs:
test:
name: "[${{ matrix.os }}] cargo test"
strategy:
matrix:
os:
- windows
- ubuntu
- macos
runs-on: "${{ matrix.os }}-latest"
steps:
- uses: actions/checkout@master
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- name: cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --verbose
fmt:
name: "[${{ matrix.os }}] cargo fmt"
strategy:
matrix:
os:
- ubuntu
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@master
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt
- name: cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
clippy:
name: "[${{ matrix.os }}] cargo clippy"
strategy:
matrix:
os:
- ubuntu
runs-on: "${{ matrix.os }}-latest"
steps:
- uses: actions/checkout@master
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: cargo clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features