Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/fmt #27

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,28 @@ install:
fi
@echo "all prerequisites installed successfully!"

.PHONY: db-create db-migrate db-query-prepare install
check:
@echo "Check: Running cargo check"
cargo check

test:
@echo "Test: Running cargo test"
cargo test

fmt:
@echo "Fmt: Running cargo fmt"
cargo +nightly fmt --all -- --check

clippy:
@echo "Clippy: Running cargo clippy"
cargo clippy -- -D warnings

verify:
@echo "Running all checks"
@make check
@make test
@make fmt
@make clippy


.PHONY: db-create db-migrate db-query-prepare install clippy fmt test check verify
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,17 @@ make db-migrate
```bash
cargo run
```



## Contributing

Make sure to run the following command before pushing commits as this will run all the checks needed to pass the CI workflow.

``` bash
make verify
```

`


Loading