check fmt first

This commit is contained in:
XFFXFF 2022-08-22 15:38:04 +08:00
parent 74e220ec39
commit 4fef5b8b2c

View file

@ -34,6 +34,13 @@ jobs:
toolchain: ${{ matrix.rust }}
components: rustfmt, clippy
default: true
- uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
- uses: actions-rs/cargo@v1
with:
command: clippy
- uses: actions-rs/cargo@v1
with:
command: check
@ -54,10 +61,3 @@ jobs:
with:
command: check
args: --no-default-features
- uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
- uses: actions-rs/cargo@v1
with:
command: clippy