CI: add rustfmt check
This commit is contained in:
parent
bab1ac45a1
commit
580489343a
12
.github/workflows/test.yml
vendored
12
.github/workflows/test.yml
vendored
@ -11,4 +11,14 @@ jobs:
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
- run: cargo test --all-features
|
||||
- run: cargo test --all-features
|
||||
format:
|
||||
name: code format
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: nightly
|
||||
components: rustfmt
|
||||
- run: cargo +nightly fmt -- --check
|
||||
|
||||
Loading…
Reference in New Issue
Block a user