Skip to content

Commit

Permalink
fix: add justfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Rakowskiii committed Jul 28, 2023
1 parent 595dd3f commit 4aa9fbf
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -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}}"

0 comments on commit 4aa9fbf

Please sign in to comment.