feat: add rustfmt ci

This commit is contained in:
alyssa 2024-10-21 13:07:57 +09:00
parent 2152953b4b
commit f5b6afed08

16
.github/workflows/rustfmt.yml vendored Normal file
View file

@ -0,0 +1,16 @@
name: "Check Rust formatting"
on:
push:
pull_request:
jobs:
rustfmt:
name: cargo fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt
- name: Rustfmt Check
uses: actions-rust-lang/rustfmt@v1