Skip to content

Commit

Permalink
Enforce Rust code format on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
luckysori committed Apr 4, 2024
1 parent 2df1977 commit b331890
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,19 @@ jobs:
run: rustup component add clippy
- name: Run clippy
run: cargo clippy -- -D warnings

fmt:
name: Check Rust code format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Check format
run: cargo fmt --all -- --check

unit-tests:
name: unit-tests
runs-on: ubuntu-latest
Expand Down

0 comments on commit b331890

Please sign in to comment.