-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (35 loc) · 715 Bytes
/
Makefile
File metadata and controls
46 lines (35 loc) · 715 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
.PHONY: build run test clean docker-build docker-up docker-down docker-logs
# Build the application
build:
go build -o bin/feishu-github-tracker ./cmd/feishu-github-tracker
# Run the application locally
run:
go run ./cmd/feishu-github-tracker
# Run tests
test:
go test -v ./...
# Clean build artifacts
clean:
rm -rf bin/
go clean
# Build Docker image
docker-build:
docker-compose build
# Start Docker containers
docker-up:
docker-compose up -d
# Stop Docker containers
docker-down:
docker-compose down
# View Docker logs
docker-logs:
docker-compose logs -f
# Restart Docker containers
docker-restart:
docker-compose restart
# Lint code
lint:
golangci-lint run
# Format code
fmt:
go fmt ./...