---
version: '3'
vars:
TASK_TEMPLATES: git,lint,robot
tasks:
00-get-list-templates:
cmds:
- echo "{{.TASK_TEMPLATES}}"
silent: true
10-get-last-local-release:
desc: "[PROJECT] Get last local release."
vars:
AKAS_DIR: rust-akas
cmds:
- cp -f ../{{.AKAS_DIR}}/target/release/akas release/akas
silent: true
20-robocop-format:
desc: "[PROJECT] Autoformatting Robot Framework code with robocop."
cmds:
- uv run robocop format tests/
silent: true
30-robocop-check:
desc: "[PROJECT] Static code analysis with robocop."
cmds:
- uv run robocop check tests/
silent: true
40-test-robot:
desc: "[PROJECT] Run Robot Framework installation tests."
cmds:
- uv run robot -i robot --outputdir results tests/
silent: true
50-tests:
desc: "[PROJECT] Run tests."
cmds:
- uv run robot --outputdir results tests/
silent: true
999-pre-commit:
desc: "[PROJECT] Pre-commit checks."
cmds:
- date > {{.FILE_TASK_START}}
- defer: rm -f {{.FILE_TASK_START}}
- task lint:pre-commit
- echo "" && echo "Markdown:" && echo "========="
- task lint:markdown GLOB='"**/*.md" "#docs" "#release" "#styles" "#Taskfile.d" "#.venv" "#.cache"'
- echo "" && echo "YAML:" && echo "====="
- task lint:yaml
- echo "" && echo "Lychee:" && echo "======="
- task lint:lychee
- echo "" && echo "Checks Start $(cat {{.FILE_TASK_START}}) - End $(date)"
silent: true