gejdr-rs/justfile
Lucien Cartier-Tilet 57a2c300e1
Some checks failed
CI / tests (push) Failing after 5m15s
feat: OAuth implementation with Discord
This commit separates the core features of géjdr from the backend as
these will also be used by the bot in the future.

This commit also updates the dependencies of the project. It also
removes the dependency lettre as well as the mailpit docker service
for developers as it appears clearer this project won’t send emails
anytime soon.

The publication of a docker image is also postponed until later.
2025-01-11 01:02:18 +01:00

61 lines
1003 B
Makefile

mod backend
mod docker
default: lint
format:
cargo fmt --all
format-check:
cargo fmt --check --all
migrate:
pushd gejdr-core
sqlx migrate run
popd
build:
cargo auditable build --bin gejdr-backend
cargo auditable build --bin gejdr-bot
lint:
cargo clippy --all-targets
msrv:
cargo msrv verify
release-build:
cargo auditable build --release --bin gejdr-backend
cargo auditable build --release --bin gejdr-bot
release-run:
cargo auditable run --release
audit: build
cargo audit bin target/debug/gejdr-backend
cargo audit bin target/debug/gejdr-bot
audit-release:
cargo audit bin target/release/gejdr-backend
cargo audit bin target/release/gejdr-bot
test:
cargo test --all-targets --all
coverage:
mkdir -p coverage
cargo tarpaulin --config .tarpaulin.local.toml
coverage-ci:
mkdir -p coverage
cargo tarpaulin --config .tarpaulin.ci.toml
check-all: format-check lint msrv coverage audit
# docker-build:
# nix build .#docker
## Local Variables:
## mode: makefile
## End: