-
-
Notifications
You must be signed in to change notification settings - Fork 42
/
cmdx.yaml
96 lines (91 loc) · 1.79 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
---
# cmdx - task runner
# https://github.com/suzuki-shunsuke/cmdx
tasks:
- name: release
short: r
description: release the new version
usage: release the new version
script: gh workflow run release.yaml -f tag={{.version}}
args:
- name: version
required: true
validate:
- regexp: "^v\\d+\\.\\d+.\\d+(-\\d+)?$"
- name: schema
description: build JSON Schema
usage: build JSON Schema
require:
exec:
- generate-schema-doc
script: |
set -eu
mkdir -p build
generate-schema-doc --expand-buttons --link-to-reused-ref schema build
- name: build
description: build TypeScript
usage: build TypeScript
shell:
- bash
- -c
script: |
set -eu
cd js
npm ci
npm run build
- name: test
short: t
description: Test
usage: Test
shell:
- bash
- -c
script: |
set -eu
cd js
npm ci
npm t
- name: update
short: u
description: Update
usage: Update
shell:
- bash
- -c
script: |
set -eu
cd js
npm ci
npm update
npm run build
- name: fmt
description: Format with prettier
usage: Format with prettier
script: |
set -eu
npm run fmt
cmdx shfmt
- name: pinact
description: Run pinact
usage: Run pinact
shell:
- bash
- -c
script: |
set -euo pipefail
pinact run
find . -name action.yaml | xargs pinact run
- name: shellcheck
shell:
- bash
- -c
script: |
set -euo pipefail
git ls-files | grep -E "\.sh$" | xargs shellcheck
- name: shfmt
shell:
- bash
- -c
script: |
set -euo pipefail
git ls-files | grep -E "\.sh$" | xargs shfmt -w -s