Add check step

This commit is contained in:
Maximilian Ammann 2021-12-28 15:55:49 +01:00
parent 77ad2851cc
commit f5ba477ace

View File

@ -3,6 +3,19 @@ name: Rust
on: [ push, pull_request ]
jobs:
check:
runs-on: ubuntu-20.04
defaults:
run:
shell: bash
steps:
- name: Setup
run: rustup component add rustfmt
- name: Format
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy --lib
build-x86:
runs-on: ubuntu-20.04
defaults: