-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
168 lines (153 loc) · 3.92 KB
/
Taskfile.yml
File metadata and controls
168 lines (153 loc) · 3.92 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
---
version: "3"
includes:
changelog: ./src/changelog/Taskfile.yml
confluence: ./src/confluence/Taskfile.yml
uv: ./src/uv/Taskfile.yml
python: ./src/python/Taskfile.yml
git: ./src/git/Taskfile.yml
docs: ./src/docs/Taskfile.yml
docker: ./src/docker/Taskfile.yml
version: ./src/version/Taskfile.yml
release: ./src/release/Taskfile.yml
plantuml: ./src/plantuml/Taskfile.yml
prettier: ./src/prettier/Taskfile.yml
pre-commit: ./src/pre-commit/Taskfile.yml
biome: ./src/biomejs/Taskfile.yml
sonar: ./src/sonar/Taskfile.yml
terraform: ./src/terraform/Taskfile.yml
bun: ./src/bun/Taskfile.yml
opencode: ./src/opencode/Taskfile.yml
go: ./src/go/Taskfile.yml
skills: ./src/skills/Taskfile.yml
diagrams: ./provision/diagrams/Taskfile.yml
env:
DOCKER:
sh: docker --version 2> /dev/null || echo "not exist"
PYTHON:
sh: python --version 2> /dev/null || echo "not exist"
GO:
sh: go version 2> /dev/null || echo "not exist"
NODE:
sh: node --version 2> /dev/null || echo "not exist"
APP_TAG:
sh: git describe --tags $(git rev-list --tags --max-count=1) 2> /dev/null || echo "0.0.0"
README_YAML: provision/generators/README.yaml
README_TEMPLATE: provision/templates/README.tpl.md
README_INCLUDES: file://
PYTHON_PACKAGE_MANAGER: uv
TERRAFORM_PATH: provision/terraform
SKILL_REPOS:
https://gitlab.infosisglobal.com/architecture/skills.git
dotenv:
- .env
vars:
PROJECT_NAME: tasks
ORGANIZATION: infosisARG
DOCKER_PLATFORM: linux/amd64
USER: ubuntu
REVIEWERS: luismayta
PYTHON_VERSION: 3.11.5
NODE_VERSION: v24.11.1
GIT_IGNORES: python,go,zsh,sonar,java,maven,intellij+all,node,helm,terraform
GOLANGCI_VERSION: 1.42.0
TERRAFORM_VERSION: 1.11.4
README_FILE: README.md
ANSIBLE_COLLECTIONS: |
community.sops
GIT_IGNORES_CUSTOM: |
bin
.project
.scannerwork
.secrets
public
TMP_CHANGELOG.md
.task
.terraform.lock.hcl
*.lock.hcl
*.lock
*.zip
.external_modules
vendor
charts
.DS_Store
tasks:
default:
deps:
- task: check
cmds:
- cmd: echo Application {{.PROJECT_NAME}}
silent: true
- task: version:default
- task: summary
- cmd: task -l
silent: true
summary:
desc: "Summary information"
cmds:
- echo Go available {{.GO}}
- echo Python available {{.PYTHON}}
- echo Docker available {{.DOCKER}}
- echo Node available {{.NODE}}
silent: true
check:
desc: "Check all dependencies"
deps:
- uv:check
- changelog:check
- git:check
- docs:check
- opencode:check
- bun:check
- skills:check
readme:
desc: Generate Readme
silent: true
cmds:
- >-
gomplate --file {{.README_TEMPLATE}}
--out {{.README_FILE}}
--datasource config={{.README_YAML}}
--datasource includes={{.README_INCLUDES}}
- task: format
format:
desc: Execute format files
cmds:
- task: biome:fmt
- task: uv:fmt
- task: terraform:fmt
upgrade:
desc: Execute upgrade packages
cmds:
- uv update
- task: pre-commit:update
setup:
desc: Setup dependences of project
cmds:
- >-
[ -e ".env" ] || cp -rf .env.example .env
- task: uv:setup
- task: git:setup
- task: skills:setup
environment:
desc: Setup environment of project
cmds:
- task: uv:environment
- task: bun:setup
- task: pre-commit:setup
validate:
desc: "Run validate on all files"
cmds:
- task: pre-commit:lint
test:
run: once
desc: Execute task test all
cmds:
- task: go:test
help:
cmds:
- cmd: |
echo 'Use "task --list" to get a list of all available tasks with a short description of what they do.'
echo 'There are some more tasks used as dependencies for other tasks.'
echo 'You can view them with "task --list-all".'
silent: true