now should report issue when incorrect
Format (JS/TS) / format (pull_request) Failing after 7s
Lint (JS/TS) / lint (pull_request) Successful in 5s
Lint (Python) / lint (pull_request) Failing after 14s
Lint (Rust) / lint (pull_request) Has been cancelled
Lint (QML) / lint (pull_request) Has been cancelled

This commit is contained in:
2026-05-16 00:33:37 +02:00
parent af04e5d227
commit e874c19ee2
5 changed files with 5 additions and 15 deletions
+1 -3
View File
@@ -20,9 +20,7 @@ jobs:
- name: Prettier - name: Prettier
run: | run: |
if [ -n "$(find . \( -iname "*.js" -o -iname "*.jsx" -o -iname "*.ts" -o -iname "*.tsx" -o -iname "*.mjs" -o -iname "*.cjs" \) -print -quit)" ]; then if [ -n "$(find . \( -iname "*.js" -o -iname "*.jsx" -o -iname "*.ts" -o -iname "*.tsx" -o -iname "*.mjs" -o -iname "*.cjs" \) -print -quit)" ]; then
if ! npx --yes prettier --check "**/*.{js,jsx,ts,tsx,mjs,cjs}" --ignore-path .gitignore; then npx --yes prettier --check "**/*.{js,jsx,ts,tsx,mjs,cjs}" --ignore-path .gitignore
echo "::warning::prettier reported issues"
fi
else else
echo "No JS/TS files found" echo "No JS/TS files found"
fi fi
+1 -3
View File
@@ -24,9 +24,7 @@ jobs:
npm install --no-audit --no-fund npm install --no-audit --no-fund
fi fi
if [ -f eslint.config.js ] || [ -f eslint.config.mjs ] || [ -f eslint.config.cjs ] || [ -f .eslintrc ] || [ -f .eslintrc.js ] || [ -f .eslintrc.cjs ] || [ -f .eslintrc.json ] || [ -f .eslintrc.yaml ] || [ -f .eslintrc.yml ]; then if [ -f eslint.config.js ] || [ -f eslint.config.mjs ] || [ -f eslint.config.cjs ] || [ -f .eslintrc ] || [ -f .eslintrc.js ] || [ -f .eslintrc.cjs ] || [ -f .eslintrc.json ] || [ -f .eslintrc.yaml ] || [ -f .eslintrc.yml ]; then
if ! npx --yes eslint .; then npx --yes eslint .
echo "::warning::eslint reported issues"
fi
else else
echo "No eslint config found" echo "No eslint config found"
fi fi
+1 -3
View File
@@ -24,6 +24,4 @@ jobs:
python3 -m venv .venv python3 -m venv .venv
. .venv/bin/activate . .venv/bin/activate
pip install --no-cache-dir ruff pip install --no-cache-dir ruff
if ! ruff check .; then ruff check .
echo "::warning::ruff reported issues"
fi
+1 -3
View File
@@ -28,9 +28,7 @@ jobs:
export PATH="$PATH:/usr/lib/qt6/bin:/usr/lib/qt6/libexec" 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
if ! find . -name "*.qml" -print0 | xargs -0 qmllint; then find . -name "*.qml" -print0 | xargs -0 qmllint
echo "::warning::qmllint reported issues"
fi
else else
echo "No QML files found" echo "No QML files found"
fi fi
+1 -3
View File
@@ -21,9 +21,7 @@ jobs:
- name: Rustfmt - name: Rustfmt
run: | run: |
if [ -f Cargo.toml ]; then if [ -f Cargo.toml ]; then
if ! cargo fmt --check; then cargo fmt --check
echo "::warning::rustfmt reported issues"
fi
else else
echo "No Rust project found" echo "No Rust project found"
fi fi