This commit is contained in:
2024-06-02 11:32:29 -07:00
commit 60a35c8a6c
8 changed files with 229 additions and 0 deletions

20
Makefile Normal file
View File

@@ -0,0 +1,20 @@
.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