mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-24 21:13:47 +00:00
github: make CI check formatting
I've forgotten to run `rustfmt` many times (most recently in
5721436558
), so let's have CI check for it.
This commit is contained in:
parent
3a306e6a23
commit
32e22831fc
1 changed files with 16 additions and 0 deletions
16
.github/workflows/build.yml
vendored
16
.github/workflows/build.yml
vendored
|
@ -34,6 +34,22 @@ jobs:
|
|||
env:
|
||||
RUST_BACKTRACE: 1
|
||||
|
||||
rustfmt:
|
||||
name: Check formatting
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: nightly
|
||||
profile: minimal
|
||||
components: rustfmt
|
||||
override: true
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: fmt
|
||||
args: --all -- --check
|
||||
|
||||
clippy-stable:
|
||||
name: Clippy check (stable)
|
||||
runs-on: ubuntu-latest
|
||||
|
|
Loading…
Reference in a new issue