nosignal-shell/.github/workflows/check-format.yml
2 * r + 2 * t c85dfc6a1b
fix: format ci (#1513)
* fix: remove _-prefixed ids

qmlformat crashes cause of them

* fix: pin ci image to Qt 6.11.0

6.11.1 is the broken qmlformat version

* chore: format c++

* ci: print tool versions at start of ci
2026-06-04 23:07:20 +10:00

40 lines
967 B
YAML

name: Check formatting
on:
push:
branches:
- main
pull_request:
jobs:
check-qml:
runs-on: ubuntu-latest
container:
image: ghcr.io/${{ github.repository_owner }}/shell-arch-env:latest
steps:
- uses: actions/checkout@v6
- name: Check QML format
shell: fish {0}
run: |
/usr/lib/qt6/bin/qmlformat --version
for file in (string match -v 'build/*' **.qml)
/usr/lib/qt6/bin/qmlformat $file | diff -u $file - || exit 1
end
python3 scripts/qml-lint-conventions.py
check-cpp:
runs-on: ubuntu-latest
container:
image: ghcr.io/${{ github.repository_owner }}/shell-arch-env:latest
steps:
- uses: actions/checkout@v6
- name: Check C++ format
shell: fish {0}
run: |
clang-format --version
find plugin extras -name '*.cpp' -o -name '*.hpp' \
| xargs clang-format --dry-run --Werror