feat: add Makefile
ci/woodpecker/pr/test Pipeline failed Details
ci/woodpecker/pr/build Pipeline failed Details
ci/woodpecker/pr/lint Pipeline failed Details

This commit is contained in:
Aire-One 2024-09-23 23:46:32 +02:00
parent f085f66d66
commit 176926f864
3 changed files with 27 additions and 0 deletions

View File

@ -1,6 +1,8 @@
.vscode .vscode
.woodpecker .woodpecker
build
configs configs
.* .*

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/build

24
Makefile Normal file
View File

@ -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