Skip to content

Commit

Permalink
added CI to enforce cargo fmt based formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
zees-dev committed Apr 8, 2024
1 parent 3c131ab commit 07445f2
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/rust-fmt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: CI

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
pull_request:
branches:
- main
env:
CARGO_TERM_COLOR: always

jobs:
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/[email protected]
with:
components: rustfmt
- run: cargo fmt --all --check

0 comments on commit 07445f2

Please sign in to comment.