Skip to content

Commit

Permalink
chore: update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
eredotpkfr committed Sep 16, 2024
1 parent 687ce6b commit 8b0bf5f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/rust-cargo-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Run tests
run: cargo test --all-features

- name: Run rustfmt
run: cargo fmt --all -- --check
run: make rustfmt-check

- name: Run clippy
run: cargo clippy --all --all-features --tests -- -D warnings
run: make clippy

- name: Run tests
run: make test
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ all: install-pre-commit-mac \
install-pre-commit-linux \
pre-commit-update-hooks \
install-pre-commit-hooks \
rustfmt-check \
rustfmt \
fix \
clean \
build \
doc \
clippy \
test \
test

.PHONY: all

Expand All @@ -21,8 +22,10 @@ install-pre-commit-hooks:
@pre-commit install --hook-type commit-msg --install-hooks
pre-commit-update-hooks:
@pre-commit autoupdate
rustfmt-check:
@cargo fmt --all -- --check
rustfmt:
@rustfmt --edition 2021 $$(find . -name "*.rs" -not -path "./target/*")
@cargo fmt --all
test:
@cargo test
doc:
Expand Down

0 comments on commit 8b0bf5f

Please sign in to comment.