-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
50 lines (41 loc) · 829 Bytes
/
Taskfile.yml
File metadata and controls
50 lines (41 loc) · 829 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
47
48
49
50
version: '3'
dotenv: ['.env', '{{.ENV}}/.env.', '{{.HOME}}/.env']
tasks:
build:
desc: Build the Go project
cmds:
- go build -o bin/server.exe ./cmd/server
sources:
- "**/*.go"
generates:
- bin/server
run:
desc: Build and run the project
cmds:
- task: build
- ./bin/server.exe
test:
desc: Run tests
cmds:
- go test ./... -cover
clean:
desc: Clean the project
cmds:
- rm -rf bin
lint:
desc: Run Go linter (golangci-lint)
cmds:
- golangci-lint run ./...
install-deps:
desc: Install project dependencies
cmds:
- go mod tidy
- go mod download
format:
desc: Format Go code using gofmt
cmds:
- gofmt -w .
default:
desc: Default task (build and run)
cmds:
- task: run