Files
z-bar-qt/.gitea/workflows/lint-qml.yml
T
AramJonghu f57577fefd
Format (JS/TS) / format (pull_request) Failing after 6s
Lint (JS/TS) / lint (pull_request) Failing after 35s
Lint (Python) / lint (pull_request) Failing after 45s
Lint (Rust) / lint (pull_request) Successful in 1m13s
Lint (QML) / lint (pull_request) Has been cancelled
aur to arch
2026-05-16 01:11:17 +02:00

46 lines
1.2 KiB
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 \
base-devel \
git \
nodejs \
npm \
sudo \
qt6-declarative
- name: Install quickshell-git (AUR)
run: |
useradd -m builder
echo "builder ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/builder
chmod 440 /etc/sudoers.d/builder
su - builder -c "cd /tmp && git clone https://aur.archlinux.org/quickshell-git.git"
su - builder -c "cd /tmp/quickshell-git && makepkg -si --noconfirm --needed"
- 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