Skip to content

Commit

Permalink
ci: add cargo fmt check
Browse files Browse the repository at this point in the history
  • Loading branch information
rajveermalviya committed Oct 4, 2023
1 parent e90c214 commit da6b2b4
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,23 @@ jobs:
uses: actions/setup-python@v4
- run: python checks.py

fmt:
name: Format
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
target: ${{ matrix.target }}
components: rustfmt
- name: Run rustfmt
run: |
cargo fmt -- --check
clippy:
name: Clippy ${{ matrix.name }}
runs-on: ${{ matrix.os }}
Expand Down

0 comments on commit da6b2b4

Please sign in to comment.