Skip to content

Commit 50e11b2

Browse files
committed
use CI to enforce formatting
1 parent 5f16366 commit 50e11b2

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,18 @@ jobs:
8888
- name: Run tests
8989
run: cargo test -p capnp -p capnpc -p capnp-futures -p capnp-rpc
9090

91+
fmt:
92+
name: formatting
93+
runs-on: ubuntu-latest
94+
steps:
95+
- uses: actions/checkout@v3
96+
- uses: actions-rs/toolchain@v1
97+
with:
98+
toolchain: nightly
99+
override: true
100+
profile: minimal
101+
components: rustfmt
102+
- uses: actions-rs/cargo@v1
103+
with:
104+
command: fmt
105+
args: --all -- --check

.rustfmt.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
format_generated_files = false

0 commit comments

Comments
 (0)