puppeteerapiclient/Makefile

21 lines
339 B
Makefile
Raw Permalink Normal View History

2024-06-02 18:32:29 +00:00
.PHONY: all test build clean
# Load environment variables from .env file
include .env
export $(shell sed 's/=.*//' .env)
all: build
# Build the Go project
build:
go build -o myapp ./...
# Run tests with .env variables loaded and disable caching
test:
go test -v -count=1 ./...
# Clean the build output
clean:
go clean
rm -f myapp