-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
39 lines (32 loc) · 717 Bytes
/
Copy pathTaskfile.yml
File metadata and controls
39 lines (32 loc) · 717 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
# yaml-language-server: $schema=https://taskfile.dev/schema.json
version: '3'
vars:
GREETING: Hello, world!
tasks:
default:
desc: List the tasks
cmds:
- task --list
silent: true
prettify:
desc: Prettify the code using gofmt across the project and organise imports
dir: api
cmds:
- go fmt ./...
- go mod tidy
silent: true
test:
desc: Test the project
cmds:
- go test ./...
silent: true
dock-up:
desc: Start the project in Docker and build the containers
cmds:
- docker-compose up -d --build
silent: true
dock-down:
desc: Stop the project in Docker
cmds:
- docker-compose down
silent: true