diff --git a/justfile b/justfile new file mode 100644 index 00000000..37f43bc7 --- /dev/null +++ b/justfile @@ -0,0 +1,22 @@ +binary-crate := "." +set dotenv-load + +export JUST_ROOT := justfile_directory() + +run: + @echo '==> Running notify server' + cargo run + +test ENV: + @echo '==> Running integration tests' + ENVIRONMENT="{{ENV}}" cargo test --test integration + +deploy-terraform ENV: + @echo '==> Deploying terraform on env {{ENV}}' + terraform -chdir=terraform workspace select {{ENV}} + terraform -chdir=terraform apply --var-file=vars/{{ENV}}.tfvars + +commit MSG: + @echo '==> Committing changes' + cargo +nightly fmt && \ + git commit -a -S -m "{{MSG}}"