Skip to content

Commit

Permalink
ci: add rust fmt check for pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
jwhb authored Mar 17, 2024
1 parent c42a97a commit 487e89a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/rust-fmt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
on: pull_request

name: Rustfmt

jobs:
format:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- uses: mbrobbel/rustfmt-check@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
mode: review

0 comments on commit 487e89a

Please sign in to comment.