3a05cd339d
Format (JS/TS) / format (pull_request) Failing after 7s
Lint (JS/TS) / lint (pull_request) Failing after 18s
Lint (Python) / lint (pull_request) Failing after 18s
Lint (Rust) / lint (pull_request) Successful in 35s
Lint (QML) / lint (pull_request) Has been cancelled
36 lines
797 B
YAML
36 lines
797 B
YAML
name: Lint (QML)
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: arch
|
|
container: archlinux:latest
|
|
|
|
steps:
|
|
- name: Install tools
|
|
run: |
|
|
pacman -Syu --noconfirm
|
|
pacman -S --noconfirm \
|
|
git \
|
|
nodejs \
|
|
npm \
|
|
qt6-declarative
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: QML lint
|
|
run: |
|
|
export PATH="$PATH:/usr/lib/qt6/bin:/usr/lib/qt6/libexec"
|
|
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
|