Add check for rustfmt

This commit is contained in:
Daniel Collin 2020-01-01 09:51:02 +01:00
parent 51bdfcc5ca
commit e02b44629c

View file

@ -3,6 +3,24 @@ on: [push, pull_request]
name: CI name: CI
jobs: jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
# make sure all code has been formatted with rustfmt
- run: rustup component add rustfmt
- name: check rustfmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check --color always
build_and_test: build_and_test:
name: Test name: Test
strategy: strategy: