Skip to content

Cleanups and fixes #115

Cleanups and fixes

Cleanups and fixes #115

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
jobs:
check:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
build: [msrv, stable, beta, nightly, macos, windows]
include:
- build: msrv
os: ubuntu-latest
rust: 1.51
- build: stable
os: ubuntu-latest
rust: stable
- build: beta
os: ubuntu-latest
rust: beta
- build: nightly
os: ubuntu-latest
rust: nightly
- build: macos
os: macos-latest
rust: stable
- build: windows
os: windows-latest
rust: stable
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
override: true
toolchain: ${{ matrix.rust }}
- uses: actions-rs/cargo@v1
with:
command: test
fmt:
name: Check formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
components: rustfmt
override: true
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
lint:
name: Clippy Linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
components: clippy
override: true
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --all
docs:
name: Check docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
- uses: actions-rs/cargo@v1
with:
command: doc
args: --no-deps