diff --git a/.dockerignore b/.dockerignore index 92da7f2..502342e 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,6 +1,8 @@ .vscode .woodpecker +build + configs .* diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..796b96d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/build diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9435e5c --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +BINARY_NAME=labtime + +.PHONY: all +all: lint test build + +.PHONY: clean +clean: + go clean -i ./... + rm -rf build + +.PHONY: lint +lint: + @echo "Running golangci-lint" + golangci-lint run + +.PHONY: test +test: + @echo "Running tests" + go test -v ./... + +.PHONY: build +build: + @echo "Building binary" + go build -o build/$(BINARY_NAME) cmd/labtime/main.go