separate all workflows, better overview
Format (JS/TS) / format (pull_request) Successful in 6s
Lint (JS/TS) / lint (pull_request) Successful in 5s
Lint (Python) / lint (pull_request) Successful in 14s
Lint (QML) / lint (pull_request) Successful in 1m19s
Lint (Rust) / lint (pull_request) Has been cancelled
Format (JS/TS) / format (pull_request) Successful in 6s
Lint (JS/TS) / lint (pull_request) Successful in 5s
Lint (Python) / lint (pull_request) Successful in 14s
Lint (QML) / lint (pull_request) Successful in 1m19s
Lint (Rust) / lint (pull_request) Has been cancelled
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
name: Lint (QML)
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: alpine
|
||||
container: node:20-alpine
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install tools
|
||||
run: |
|
||||
apk add --no-cache \
|
||||
git
|
||||
edge_main="https://dl-cdn.alpinelinux.org/alpine/edge/main"
|
||||
edge_community="https://dl-cdn.alpinelinux.org/alpine/edge/community"
|
||||
apk add --no-cache -X "$edge_main" -X "$edge_community" qt6-qtdeclarative-dev-tools || \
|
||||
apk add --no-cache -X "$edge_main" -X "$edge_community" qt6-qtdeclarative-dev || \
|
||||
apk add --no-cache -X "$edge_main" -X "$edge_community" qt6-qtdeclarative || \
|
||||
echo "::warning::qmllint not available"
|
||||
|
||||
- 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
|
||||
if ! find . -name "*.qml" -print0 | xargs -0 qmllint; then
|
||||
echo "::warning::qmllint reported issues"
|
||||
fi
|
||||
else
|
||||
echo "No QML files found"
|
||||
fi
|
||||
else
|
||||
echo "No qmllint in PATH"
|
||||
fi
|
||||
Reference in New Issue
Block a user