-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.cmdx.yaml
49 lines (49 loc) · 1.26 KB
/
.cmdx.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
39
40
41
42
43
44
45
46
47
48
49
---
tasks:
- name: install
short: i
script: go install ./cmd/github-comment
description: go install
usage: go install
- name: coverage
short: c
description: test a package (fzf is required)
usage: test a package (fzf is required)
script: "bash scripts/coverage.sh {{.path}}"
args:
- name: path
- name: test
short: t
description: test
usage: test
script: go test ./... -race -covermode=atomic
- name: fmt
description: format the go code
usage: format the go code
script: bash scripts/fmt.sh
- 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: shellcheck
description: shellcheck
usage: shellcheck
script: shellcheck scripts/* githooks/*
- name: shfmt
description: shfmt
usage: shfmt
script: shfmt -l -w scripts/* githooks/*
- name: yamllint
description: yamllint
usage: yamllint
script: 'find . \( -name "*.yml" -o -name "*.yaml" \) -print0 | xargs -0 yamllint -c .yamllint.yml'
- name: js
description: Generate JSON Schema
usage: Generate JSON Schema
script: "go run ./cmd/gen-jsonschema"