Dockerfile, docker-compose, Gitea CI, Makefile, i18n (en/fa)
Some checks failed
CI / build (push) Failing after 27s

This commit is contained in:
2026-06-23 20:23:04 +03:30
parent 7176f9b81d
commit 0bb5db46d0
8 changed files with 200 additions and 0 deletions

32
Makefile Normal file
View File

@@ -0,0 +1,32 @@
.PHONY: build run test clean docker docker-run lint vet
BINARY=worktime-bot
BUILD_DIR=.build
build: $(BUILD_DIR)/$(BINARY)
$(BUILD_DIR)/$(BINARY): cmd/bot/*.go internal/**/*.go pkg/**/*.go go.mod go.sum
mkdir -p $(BUILD_DIR)
go build -o $(BUILD_DIR)/$(BINARY) ./cmd/bot/
run: build
$(BUILD_DIR)/$(BINARY)
test:
go test ./...
lint: vet
vet:
go vet ./...
clean:
rm -rf $(BUILD_DIR)
docker:
docker compose build
docker-run: docker
docker compose up -d
.PHONY: all
all: build test lint