-
Notifications
You must be signed in to change notification settings - Fork 4
/
Taskfile.yml
33 lines (32 loc) · 879 Bytes
/
Taskfile.yml
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
version: '3'
tasks:
clean:
cmds:
- gci write --skip-generated -s standard -s default .
- gofumpt -l -w .
- go generate ./...
- golangci-lint run --fix
- go test -v -race -coverpkg=./... -parallel=4 ./...
update-message-examples-deps:
dir: examples/message
cmds:
- go mod tidy
update-qr-examples-deps:
dir: examples/qr
cmds:
- go mod tidy
update-auth-examples-deps:
dir: examples/auth
cmds:
- go mod tidy
build-examples:
deps: [clean, update-message-examples-deps,update-qr-examples-deps,update-auth-examples-deps]
dir: examples
cmds:
- mkdir -p bin
- go build -trimpath -race -o bin/message message/main.go
- go build -trimpath -race -o bin/qr qr/main.go
- go build -trimpath -race -o bin/auth auth/main.go
lint-check:
cmds:
- golangci-lint run