-
Notifications
You must be signed in to change notification settings - Fork 0
/
.t0runnerrc.yml
110 lines (109 loc) · 2.57 KB
/
.t0runnerrc.yml
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# see main.go task type
# <variables> are replaced by some value
# see main.go const section for variables
version: 0.2.0
tasks:
- name: build
package: true
env:
- HOME=<inherit>
- PATH=<inherit>
- BASH_ENV=./sh/lib/lib.sh
exec:
- ./sh/workflows/module_pr/build.sh <package>
- name: install
package: true
env:
- HOME=<inherit>
- PATH=<inherit>
- BASH_ENV=./sh/lib/lib.sh
exec:
- ./sh/workflows/module_pr/build.sh <package> -install
- name: lint
package: true
exec:
- "golangci-lint run --timeout 10s --print-issued-lines=false"
- name: go-lint-fix
package: true
env:
- HOME=<inherit>
- PATH=<inherit>
- BASH_ENV=./sh/lib/lib.sh
exec:
- "./sh/lib/go/lint_fix.sh <package>"
- name: format
package: true
exec:
- gofumpt -l -w <package>
- prettier --write <package>/**/*.yml
- name: test
package: true
env:
- CACHE=true
- GITHUB_OUTPUT=/dev/null
- COVERAGE_FILE=coverage.out
- PATH=<inherit>
- HOME=<inherit>
- BASH_ENV=./sh/lib/lib.sh
exec:
- ./sh/workflows/module_pr/test_pretty.sh <package>
- name: format-configs
exec:
- "prettier --write ./**/*{.yml,.json}"
- name: generate-mocks
env:
- PATH=<inherit>
- HOME=<inherit>
- BASH_ENV=./sh/lib/lib.sh
exec:
- ./sh/lib/go/generate_mocks.sh
- name: spellcheck
exec:
- "cspell --gitignore ."
- name: setup
env:
- HOME=<inherit>
- PATH=<inherit>
- NVM_DIR=<inherit>
- BASH_ENV=./sh/lib/lib.sh
- T0_COLOR=<inherit>
exec:
- ./sh/setup.sh
- name: generate-go-work
env:
- PATH=<inherit>
- HOME=<inherit>
- T0_COLOR=<inherit>
- T0_LOGLEVEL=<inherit>
exec:
- go run cmd/gengowork/main.go
- name: new-module
env:
- PATH=<inherit>
- HOME=<inherit>
- BASH_ENV=./sh/lib/lib.sh
exec:
- ./sh/new_module.sh
- name: new-command
env:
- PATH=<inherit>
- HOME=<inherit>
- BASH_ENV=./sh/lib/lib.sh
exec:
- ./sh/new_command.sh
- name: copyright-fix-go
env:
- PATH=<inherit>
- HOME=<inherit>
- T0_COLOR=<inherit>
- T0_LOGLEVEL=<inherit>
exec:
- go run cmd/t0copyright/main.go -check *.go -fix -comment //<space>
- name: copyright-fix-sh
env:
- PATH=<inherit>
- HOME=<inherit>
- T0_COLOR=<inherit>
- T0_LOGLEVEL=<inherit>
exec:
- go run cmd/t0copyright/main.go -check *.sh -fix -comment \#<space> -shebang