-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTaskfile.yml
More file actions
38 lines (36 loc) · 725 Bytes
/
Taskfile.yml
File metadata and controls
38 lines (36 loc) · 725 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
38
version: '3'
vars:
PROJECT: github.com/inverse/git-pair
tasks:
default:
deps:
- task: format
- task: lint
- task: build
build:
desc: Build project
deps: [clean]
cmds:
- PROJECT={{.PROJECT}} goreleaser build --single-target --snapshot --clean
silent: true
clean:
desc: Clean project
cmds:
- go clean
- rm -rf dist/*
silent: true
format:
desc: Format code
cmds:
- gofmt -s -w .
silent: true
lint:
desc: Lint code
cmds:
- golangci-lint run
silent: true
goreleaser:
desc: Perform dev goreleaser
deps: [clean]
cmds:
- PROJECT={{.PROJECT}} goreleaser release --snapshot --clean --skip=publish