This repository was archived by the owner on Sep 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yaml
More file actions
63 lines (61 loc) · 1.68 KB
/
Taskfile.yaml
File metadata and controls
63 lines (61 loc) · 1.68 KB
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
53
54
55
56
57
58
59
60
61
62
63
# https://taskfile.dev
# This Task file uses relative paths and expects to be located in the root of the dupers repository.
version: '3'
tasks:
default:
silent: true
desc: list all available tasks
cmds:
- task --list-all
lint:
silent: false
desc: runs the go formatter and lints the source code
ignore_error: true
cmds:
- cmd: clear
platforms: [linux,darwin]
- cmd: gofumpt -w .
- cmd: golangci-lint run
build:
desc: there is no build command, it is done via github actions
build-race:
silent: false
desc: build a binary of this program with the race detection
cmds:
- cmd: go build -v -race -o df2 main.go
platforms: [linux,darwin]
- cmd: go build -v -race -o df2.exe main.go
platforms: [windows]
- cmd: ./df2 --version
platforms: [linux,darwin]
- cmd: ./df2.exe --version
platforms: [windows]
build-sim:
silent: false
desc: build the distribution package for this program by simulating a release
cmds:
- cmd: goreleaser release --clean --snapshot
- cmd: ./dist/df2_linux_amd64_v1/df2 --version
platforms: [linux/amd64]
pkg-patch:
silent: false
desc: patch the package deependencies
cmds:
- cmd: go get -u=patch -x
- cmd: go mod verify
pkg-update:
silent: false
desc: update the package deependencies
cmds:
- cmd: go get -u -x
- cmd: go mod verify
ver:
silent: false
desc: print the versions of tools
ignore_error: true
cmds:
- cmd: go version
- cmd: gofumpt --version
- cmd: task --version
- cmd: golangci-lint --version
- cmd: goreleaser --version