Skip to content

release: v1.6.0

release: v1.6.0 #30

Workflow file for this run

name: Quality
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
jobs:
quality:
name: Quality docs/i18n/QML
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: "20"
cache: npm
- name: Install pinned quality dependencies
run: npm ci --ignore-scripts
- name: Install Qt tools
run: |
sudo apt-get update
# EN: Try every known package that ships a QML formatter across distros.
# PT-BR: Tenta cada pacote conhecido que fornece um formatador QML.
# EN: Never fail the step; the validation script handles missing binaries gracefully.
# PT-BR: Não falha esta etapa; o script trata binários ausentes como aviso.
for pkg in qt6-declarative-dev-tools qml6-tools qml6format qmlformat; do
sudo apt-get install -y "$pkg" 2>/dev/null && break || true
done
echo "QML formatter search:"
command -v qmlformat 2>/dev/null && echo " found: qmlformat" || true
command -v qml6format 2>/dev/null && echo " found: qml6format" || true
command -v qmlformat6 2>/dev/null && echo " found: qmlformat6" || true
- name: Lint Markdown / Validar Markdown
run: bash scripts/lint-markdown.sh
- name: Check i18n keys / Validar chaves i18n
run: node scripts/check-i18n-keys.mjs
- name: Run parser tests / Rodar testes dos parsers
run: node scripts/test-parsers.mjs
- name: Validate QML syntax / Validar sintaxe QML
run: bash scripts/validate-qml.sh