-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
57 lines (48 loc) · 1.24 KB
/
Taskfile.yml
File metadata and controls
57 lines (48 loc) · 1.24 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
version: "3"
tasks:
ci:
desc: Run all CI steps
deps: [lint]
lint:
desc: Run all linting steps
deps: [lint:shellcheck, lint:shfmt, lint:stylua, lint:selene]
format:
desc: Format all lua files with stylua
deps: [setup]
cmds:
- ./build/ext/bin/stylua lua
lint:shellcheck:
desc: Check all script files with shellcheck
deps: [setup]
cmds:
- ./build/ext/bin/shellcheck --enable=all --severity=style .envrc scripts/*
lint:shfmt:
desc: Check all script files with shfmt
deps: [setup]
cmds:
- ./build/ext/bin/shfmt --list --diff --simplify --indent 2 .envrc scripts/*
lint:stylua:
desc: Check all lua files with stylua
deps: [setup]
cmds:
- ./build/ext/bin/stylua --check lua
lint:selene:
desc: Check all lua files with selene
deps: [setup]
cmds:
- ./build/ext/bin/selene --no-summary lua
setup:
desc: Install the toolchain for development on Linux
run: once
sources:
- ./scripts/setup_toolchain
cmds:
- ./scripts/setup_toolchain
generates:
- ./build/ext/bin/shellcheck
- ./build/ext/bin/stylua
- ./build/ext/bin/task
clean:
desc: Delete all build artifacts
cmds:
- rm -rf build