-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
03575f8
commit 26a9acb
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
# cmdx - task runner | ||
# https://github.com/suzuki-shunsuke/cmdx | ||
tasks: | ||
- name: test | ||
short: t | ||
description: test | ||
usage: test | ||
script: go test ./... -race -covermode=atomic | ||
- name: vet | ||
short: v | ||
description: go vet | ||
usage: go vet | ||
script: go vet ./... | ||
- name: lint | ||
short: l | ||
description: lint the go code | ||
usage: lint the go code | ||
script: golangci-lint run | ||
- name: release | ||
short: r | ||
description: release the new version | ||
usage: release the new version | ||
script: | | ||
git tag -m "chore: release {{.version}}" "{{.version}}" | ||
git push origin "{{.version}}" | ||
args: | ||
- name: version | ||
required: true | ||
validate: | ||
- regexp: "^v\\d+\\.\\d+.\\d+(-\\d+)?$" | ||
- name: install | ||
short: i | ||
description: go install | ||
usage: go install | ||
script: go install ./cmd/ghalint |