Skip to content

Commit

Permalink
chore: add cmdx.yaml (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke committed Oct 26, 2023
1 parent 03575f8 commit 26a9acb
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions cmdx.yaml
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

0 comments on commit 26a9acb

Please sign in to comment.