38 lines
887 B
YAML
38 lines
887 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: |
|
|
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: |
|
|
find plugin extras -name '*.cpp' -o -name '*.hpp' \
|
|
| xargs clang-format --dry-run --Werror
|