mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-05-16 23:55:42 +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
|
- name: Test code snippets
|
||||||
run: mdbook test
|
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:
|
cargo:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user