-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtaskfile.yaml
38 lines (34 loc) · 1004 Bytes
/
taskfile.yaml
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
####### dolmen (c) 2025 Archivage Numérique ######################################################## MIT License #######
####### https://taskfile.dev
version: '3'
vars:
APPNAME: dolmen
VERSION: 0.1.0
BUILTAT:
sh: date +%s
LDFLAGS: -s -w -X 'main._version={{.VERSION}}' -X 'main._builtAt={{.BUILTAT}}'
tasks:
upgrade:
cmds:
- go get -u ./...
- go mod tidy
lint:
cmds:
- golangci-lint run
test:
cmds:
- go test -cover ./...
build:
cmds:
- go build -ldflags "{{.LDFLAGS}}" -o $GOPATH/bin/{{.APPNAME}} ./main/main.go
default:
cmds:
- task: lint
- task: test
- task: build
commit:
cmds:
- git add .
- git commit -m "En cours de développement"
- git push
####### END ############################################################################################################