mirror of
https://github.com/italicsjenga/rust_minifb.git
synced 2024-12-23 11:21:30 +11:00
Add check for rustfmt
This commit is contained in:
parent
51bdfcc5ca
commit
e02b44629c
18
.github/workflows/ci.yml
vendored
18
.github/workflows/ci.yml
vendored
|
@ -3,6 +3,24 @@ on: [push, pull_request]
|
|||
name: CI
|
||||
|
||||
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:
|
||||
name: Test
|
||||
strategy:
|
||||
|
|
Loading…
Reference in a new issue