version: "3" vars: BINARY: worker tasks: default: desc: Build the application cmds: - task: build build: desc: Build the binary with optimisations cmds: - go build -ldflags="-s -w" -o {{.BINARY}} ./cmd/worker sources: - ./**/*.go generates: - ./{{.BINARY}} run: desc: Build and run the application deps: [build] cmds: - ./{{.BINARY}} clean: desc: Remove build artifacts cmds: - rm -f {{.BINARY}} - go clean test: desc: Run tests cmds: - go test ./... fmt: desc: Format code cmds: - iku -w . || go fmt ./... lint: desc: Run linter cmds: - golangci-lint run dev: desc: Build and run in development mode cmds: - go run ./cmd/worker tidy: desc: Tidy and verify module dependencies cmds: - go mod tidy - go mod verify