qml goes to Ubuntu for simplicity
Format (JS/TS) / format (pull_request) Failing after 9s
Lint (JS/TS) / lint (pull_request) Failing after 18s
Lint (Python) / lint (pull_request) Failing after 22s
Lint (Rust) / lint (pull_request) Successful in 34s
Lint (QML) / lint (pull_request) Has been cancelled
Format (JS/TS) / format (pull_request) Failing after 9s
Lint (JS/TS) / lint (pull_request) Failing after 18s
Lint (Python) / lint (pull_request) Failing after 22s
Lint (Rust) / lint (pull_request) Successful in 34s
Lint (QML) / lint (pull_request) Has been cancelled
This commit is contained in:
@@ -5,8 +5,8 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
runs-on: alpine
|
runs-on: ubuntu
|
||||||
container: node:20-alpine
|
container: ubuntu:24.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -14,18 +14,13 @@ jobs:
|
|||||||
|
|
||||||
- name: Install tools
|
- name: Install tools
|
||||||
run: |
|
run: |
|
||||||
apk add --no-cache \
|
apt-get update
|
||||||
git
|
apt-get install -y --no-install-recommends \
|
||||||
edge_main="https://dl-cdn.alpinelinux.org/alpine/edge/main"
|
git \
|
||||||
edge_community="https://dl-cdn.alpinelinux.org/alpine/edge/community"
|
qt6-declarative-dev-tools
|
||||||
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
|
- name: QML lint
|
||||||
run: |
|
run: |
|
||||||
export PATH="$PATH:/usr/lib/qt6/bin:/usr/lib/qt6/libexec"
|
|
||||||
if command -v qmllint >/dev/null 2>&1; then
|
if command -v qmllint >/dev/null 2>&1; then
|
||||||
if [ -n "$(find . -name "*.qml" -print -quit)" ]; then
|
if [ -n "$(find . -name "*.qml" -print -quit)" ]; then
|
||||||
find . -name "*.qml" -print0 | xargs -0 qmllint
|
find . -name "*.qml" -print0 | xargs -0 qmllint
|
||||||
|
|||||||
Reference in New Issue
Block a user