Skip to content

Commit 97e8e04

Browse files
committed
Add qml format lint
1 parent 45f3cda commit 97e8e04

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/main.yml

+11
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,17 @@ jobs:
106106
run: |
107107
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --install-deps owncloud/owncloud-client
108108
109+
- name: QML format lint
110+
if: matrix.name == 'linux-gcc-x86_64'
111+
run: |
112+
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c libs/qt6/qttools
113+
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --run pwsh -c "git ls-files *.qml | %{ qmlformat -i `$_}"
114+
$diff = git diff
115+
if ($diff) {
116+
$diff
117+
exit 1
118+
}
119+
109120
- name: Build
110121
if: ${{ !matrix.useSonarCloud }}
111122
run: |

0 commit comments

Comments
 (0)