16 lines
352 B
Makefile
16 lines
352 B
Makefile
test:
|
|
go test ./... -race
|
|
|
|
build: lint
|
|
mkdir -p builds
|
|
go build -o builds/librapi main.go
|
|
|
|
lint:
|
|
golangci-lint run --fix
|
|
|
|
# .run-meilisearch:
|
|
# docker-compose up -d meilisearch
|
|
|
|
run: lint
|
|
# while [ "`curl --insecure -s -o /dev/null -w ''%{http_code}'' http://localhost:7700/health`" != "200" ]; do sleep 2; echo "waiting..."; done
|
|
go run main.go
|