name: PR format
on:
jobs:
fmt:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
rust:
components:
steps:
- uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ matrix.rust }}
- uses: actions/checkout@master
- name: Run tests
run: rustup component add rustfmt; cargo fmt -- --check