-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTaskfile.yml
More file actions
76 lines (66 loc) · 1.58 KB
/
Taskfile.yml
File metadata and controls
76 lines (66 loc) · 1.58 KB
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
version: '3'
includes:
ruby: ./Taskfile.ruby.yml
rails: ./Taskfile.rails.yml
docs: ./Taskfile.docs.yml
prettier: ./Taskfile.prettier.yml
yard: ./Taskfile.yard.yml
gem: ./Taskfile.gem.yml
tasks:
generate:
desc: Regenerate LogStruct Ruby and TypeScript structs
cmds:
- task: ruby:generate
typecheck:
desc: Run Sorbet and TypeScript type checking
cmds:
- task: ruby:typecheck
- task: docs:typecheck
lint:
desc: Run Ruby and frontend linters
cmds:
- task: ruby:lint
- task: prettier:check
- task: docs:lint
lint:fix:
desc: Auto-fix Ruby and frontend lint issues
cmds:
- task: ruby:lint:fix
- task: prettier:write
- task: docs:lint:fix
spellcheck:
aliases: [cspell]
desc: Run repository spellcheck
deps: [prettier:deps]
cmds:
- scripts/spellcheck.sh
jscpd:
desc: Detect copy/paste duplication
deps: [prettier:deps]
cmds:
- pnpm exec jscpd . --exitCode 1
test:
desc: Run Ruby unit tests, Rails integration tests, and merge coverage
cmds:
- task: ruby:test
- task: rails:test
- task: ruby:coverage:merge
ci:
desc: Run the full validation workflow
deps:
- generate
- typecheck
- lint
- spellcheck
- docs:test
- test
- ruby:tapioca
fix:
desc: Auto-fix lint issues then run the full validation workflow (replaces scripts/all_write.sh)
cmds:
- task: generate
- task: typecheck
- task: lint:fix
- task: spellcheck
- task: docs:test
- task: test