Files
wanderer/Makefile
guarzo d8acfa5c05
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
refactor: standalone unit tests (#278)
2025-03-18 21:37:52 +04:00

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