Skip to content

Commit

Permalink
ci: clippy and rustfmt checks
Browse files Browse the repository at this point in the history
Co-authored-by: Damien Broka <damienbroka@mailbox.org>
  • Loading branch information
bmoxb and brokad authored Mar 25, 2022
1 parent af73643 commit a4f3b22
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,23 @@ jobs:
- name: Build docker
run: docker build -f ./Dockerfile.dev .
- run: cargo test -- --nocapture
fmt_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt
- run: cargo fmt --all -- --check
clippy_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: clippy
- run: cargo clippy --tests --all-targets -- --D warnings
7 changes: 6 additions & 1 deletion rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
edition="2021"
edition="2021"
reorder_imports = true
group_imports = "StdExternalCrate"
imports_layout = "Vertical"
imports_granularity = "Module"
trailing_comma = "Never"

0 comments on commit a4f3b22

Please sign in to comment.