e7e772ebc6
Format (JS/TS) / format (pull_request) Failing after 9s
Lint (JS/TS) / lint (pull_request) Failing after 20s
Lint (Python) / lint (pull_request) Failing after 27s
Lint (Rust) / lint (pull_request) Successful in 55s
Lint (QML) / lint (pull_request) Successful in 2m3s
35 lines
747 B
YAML
35 lines
747 B
YAML
name: Lint (QML)
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: debian
|
|
container: debian:sid
|
|
|
|
steps:
|
|
- name: Install tools
|
|
run: |
|
|
apt-get update
|
|
apt-get install -y --no-install-recommends \
|
|
git \
|
|
nodejs \
|
|
npm \
|
|
qt6-declarative-dev-tools
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: QML lint
|
|
run: |
|
|
if command -v qmllint >/dev/null 2>&1; then
|
|
if [ -n "$(find . -name "*.qml" -print -quit)" ]; then
|
|
find . -name "*.qml" -print0 | xargs -0 qmllint
|
|
else
|
|
echo "No QML files found"
|
|
fi
|
|
else
|
|
echo "No qmllint in PATH"
|
|
fi
|