1
0
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:
Andrew Walbran 2023-03-16 15:56:23 +00:00
parent f0b59d0818
commit 036269ec94

View File

@ -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: