Skip to content

rustfmt check

rustfmt check #56

Workflow file for this run

on:
- push
- pull_request
name: CI
jobs:
linux-stable:
name: Linux stable
runs-on: ubuntu-latest
env:
RUST_BACKTRACE: 1
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: --all --all-features
macos-stable:
name: macOS stable
runs-on: macos-latest
env:
RUST_BACKTRACE: 1
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: --all --all-features
windows-stable:
name: Windows stable
runs-on: windows-latest
env:
RUST_BACKTRACE: 1
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: --all --all-features
readme-check:
name: Check README.md
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Check README.md
uses: actions-rs/cargo@v1
with:
command: xtask
args: gen-help --check
rustfmt-check:
name: Check formatting
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
- name: Check formatting
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check