.PHONY: test integration client server downloads
test:
	CGO_ENABLED=0 go test -buildvcs=false ./...
integration:
	docker compose -f compose.test.yml up --abort-on-container-exit --exit-code-from tests
	docker compose -f compose.test.yml down -v
client:
	docker build -f Dockerfile.client --target artifacts --output type=local,dest=./releases .
server:
	docker compose up -d --build
downloads:
	python3 scripts/publish-downloads.py
