-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathTaskfile.yml
More file actions
96 lines (88 loc) · 1.93 KB
/
Taskfile.yml
File metadata and controls
96 lines (88 loc) · 1.93 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# yaml-language-server: $schema=https://taskfile.dev/schema.json
# docs: https://taskfile.dev
#
# --- Linux ---
# sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b ~/.local/bin
# echo 'command -v task >/dev/null || export PATH="$PATH:$HOME/.local/bin"' >> ~/.profile
# source ~/.profile
#
# --- macOS ---
# brew install go-task/tap/go-task
---
version: "3"
vars:
REPO: microsoft/CAIRA
REPO_ABS_ROOT_PATH:
sh: git rev-parse --show-toplevel
CURRENT_BRANCH:
sh: git rev-parse --abbrev-ref HEAD
OS:
sh: uname | tr '[:upper:]' '[:lower:]'
ARCH:
sh: uname -m | sed 's/x86_64/amd64/' | sed 's/aarch64/arm64/'
includes:
internal:
taskfile: .taskfiles/internal.yml
sh:
taskfile: .taskfiles/bash.yml
gh:
taskfile: .taskfiles/github.yml
js:
taskfile: .taskfiles/javascript.yml
md:
taskfile: .taskfiles/markdown.yml
sec:
taskfile: .taskfiles/security.yml
spell:
taskfile: .taskfiles/spell.yml
tf:
taskfile: .taskfiles/terraform.yml
yml:
taskfile: .taskfiles/yaml.yml
site:
taskfile: .taskfiles/site.yml
tasks:
default:
desc: Default task
silent: true
cmds:
- cmd: task --list
ignore_error: true
tools:
desc: Install tools
cmds:
- task: sh:tools
- task: gh:tools
- task: js:tools
- task: md:tools
- task: sec:tools
- task: spell:tools
- task: tf:tools
- task: yml:tools
- task: site:tools
lint:
desc: Lint files
deps:
- task: sh:lint
- task: gh:lint
- task: js:lint
- task: md:lint
- task: sec:lint
- task: spell:lint
- task: tf:lint
- task: yml:lint
test:
desc: Run all tests
cmds:
- task: tf:test
docs:
desc: Generate documentation
cmds:
- task: tf:docs
- task: spell:lint
- task: md:lint
clean:
desc: Clean up files
deps:
- task: tf:clean
- task: site:clean