-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yaml
More file actions
33 lines (28 loc) · 761 Bytes
/
Taskfile.yaml
File metadata and controls
33 lines (28 loc) · 761 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
#schema: https://taskfile.dev/schema.json
version: '3.17'
tasks:
run:
desc: Run
cmds:
- go run . {{.CLI_ARGS}}
lint:
desc: Run lint with auto-fix where possible (dev workflow)
cmds:
- docker run --rm -v "$(pwd):/repo" -w /repo thumbrise/commitlint-scope:latest-alpine run --from main --to HEAD
- golangci-lint run --fix
test:
desc: Run tests
cmds:
- go test ./... -v
- go test ./... -v -run=NONE -bench=. -benchmem
generate:
desc: Generate
aliases:
- gen
cmds:
- go tool mockery
build:
desc: Build
cmds:
- mkdir -p build
- go build -o build/ -ldflags="-s -w -X main.version=1.0.0-local -X main.commit=aabbcc -X main.date=2006-01-02T15:04:05Z07:00"