Files
repo/test/Makefile
2025-08-30 10:30:53 +03:00

9 lines
267 B
Makefile

.PHONY: test
test:
docker run --rm -d -e POSTGRES_PASSWORD=postgres --name test-postgres -p 5432:5432 postgres:15.6-bookworm
# wait for postgres to launch
sleep 10
PGX_DSN=postgres://postgres:postgres@127.0.0.1:5432 go test -v -cover
docker stop test-postgres