-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yaml
More file actions
52 lines (43 loc) · 924 Bytes
/
Taskfile.yaml
File metadata and controls
52 lines (43 loc) · 924 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
51
52
version: "3"
vars:
GO: go
tasks:
install:
desc: Install dependencies
cmds:
- "{{.GO}} mod tidy"
generate:
desc: Generate API code from OpenAPI spec
cmds:
- rm -rf ./generated
- mkdir -p ./generated
- "{{.GO}} tool oapi-codegen -config ./openapi/config.yaml ./openapi/openapi.yaml"
clean:
desc: Clean build artifacts
cmds:
- rm -rf ./bin
build:
desc: Build the application
deps:
- clean
cmds:
- mkdir -p ./bin
- "{{.GO}} build -tags timetzdata -o ./bin/main ./cmd/server/main.go"
run:
desc: Run the application
cmds:
- "{{.GO}} run ./cmd/server/main.go"
build-and-run:
desc: Build and run the application
deps:
- build
cmds:
- ./bin/main
test:
desc: Run tests
cmds:
- "{{.GO}} test -v ./..."
default:
desc: Show available tasks
cmds:
- task --list