mirror of
https://github.com/wanderer-industries/wanderer
synced 2025-10-30 05:57:10 +00:00
Some checks are pending
Build / 🚀 Deploy to test env (fly.io) (push) Waiting to run
Build / Manual Approval (push) Blocked by required conditions
Build / 🛠 Build (1.17, 18.x, 27) (push) Blocked by required conditions
Build / 🛠 Build Docker Images (linux/amd64) (push) Blocked by required conditions
Build / 🛠 Build Docker Images (linux/arm64) (push) Blocked by required conditions
Build / merge (push) Blocked by required conditions
Build / 🏷 Create Release (push) Blocked by required conditions
49 lines
832 B
Makefile
49 lines
832 B
Makefile
.PHONY: deploy install cleanup start yarn migrate format test coverage versions standalone-tests
|
|
|
|
ROOT_DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
|
|
SHELL := /bin/bash
|
|
|
|
evn e:
|
|
export ERL_AFLAGS="-kernel shell_history enabled"
|
|
|
|
install i:
|
|
mix deps.get
|
|
cd assets && yarn install
|
|
|
|
deploy d:
|
|
mix assets.build && mix assets.deploy
|
|
|
|
cleanup c:
|
|
-pkill -SIGTERM -f 'tailwind'
|
|
|
|
yarn y:
|
|
cd assets && yarn
|
|
|
|
start server s:
|
|
make cleanup
|
|
source .env && MIX_ENV=dev iex -S mix phx.server
|
|
|
|
migrate m:
|
|
MIX_ENV=dev mix ash.migrate
|
|
|
|
format f:
|
|
mix format
|
|
|
|
test t:
|
|
mix test
|
|
|
|
coverage cover co:
|
|
mix test --cover
|
|
|
|
unit-tests ut:
|
|
@echo "Running unit tests..."
|
|
@find test/unit -name "*.exs" -exec elixir {} \;
|
|
@echo "All unit tests completed."
|
|
|
|
versions v:
|
|
@echo "Tool Versions"
|
|
@cat .tool-versions
|
|
@cat Aptfile
|
|
@echo
|
|
|