This repository has been archived by the owner on Jun 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
.cmdx.yaml
69 lines (69 loc) · 1.75 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
---
tasks:
- name: init
short: i
script: bash scripts/githook.sh
description: setup git hooks
usage: setup git hooks
- 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: bash scripts/test.sh
- 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: release
short: r
description: release the new version
usage: release the new version
script: "bash scripts/release.sh {{.version}}"
args:
- name: version
required: true
- name: durl
description: check dead links (durl is required)
usage: check dead links (durl is required)
script: bash scripts/durl.sh
- name: ci-local
description: run the Drone pipeline at localhost (drone-cli is required)
usage: run the Drone pipeline at localhost (drone-cli is required)
script: time drone exec --pipeline build --event pull_request
environment:
LOCAL: "true"
- name: install-local-terraform
script: bash scripts/install_local_terraform.sh
- name: shellcheck
description: shellcheck
usage: shellcheck
script: bash scripts/shellcheck.sh
- name: shfmt
description: shfmt
usage: shfmt
script: 'git ls-files | grep -E ".*\.sh$" | xargs shfmt -l -w env.sh.tmpl'
- name: yamllint
description: yamllint
usage: yamllint
script: bash scripts/yamllint.sh
- name: jsonlint
description: jsonlint
usage: jsonlint
script: bash scripts/jsonlint.sh