Skip to content

feat: color-code ping badges by latency tier #22

feat: color-code ping badges by latency tier

feat: color-code ping badges by latency tier #22

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@v6.0.2
- name: Setup Node.js
uses: actions/setup-node@v6.4.0
with:
node-version: "20"
- 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