mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-03-24 07:21:05 +02:00
Add workflow to check that Rust code is formatted properly.
This commit is contained in:
parent
f0b59d0818
commit
036269ec94
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@ -25,6 +25,16 @@ jobs:
|
||||
- name: Test code snippets
|
||||
run: mdbook test
|
||||
|
||||
format:
|
||||
name: Format
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Format Rust code
|
||||
run: cargo fmt --all -- --check
|
||||
|
||||
cargo:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
Loading…
x
Reference in New Issue
Block a user