-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtaskfile.yml
More file actions
37 lines (36 loc) · 921 Bytes
/
taskfile.yml
File metadata and controls
37 lines (36 loc) · 921 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
version: '3'
tasks:
lint:
desc: Run linters using golangci-lint
cmds:
- golangci-lint run --config .golangci.yml
silent: true
clear:
cmds:
- mkdir -p ./.runtime
- rm -f ./.runtime/*
silent: true
test:
deps: [clear]
cmds:
- go test -cover ./... > ./.runtime/test.log
- go test -race ./... >> ./.runtime/test.log
silent: true
build:
deps: [lint, clear, test]
cmds:
- go build -o ./.runtime/example ./cmd/example/*.go
silent: true
run:
deps: [build]
cmds:
- ./.runtime/example -env=development -lt=2s
silent: true
run-dev:
cmds:
- docker-compose -f ./deployments/development/docker-compose.yaml up -d --build
stop-dev:
cmds:
- docker-compose -f ./deployments/development/docker-compose.yaml down --remove-orphans
- docker volume prune --force
- docker volume rm dev-store --force