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
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:
@@ -20,9 +20,7 @@ jobs:
|
||||
- name: Prettier
|
||||
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 ! npx --yes prettier --check "**/*.{js,jsx,ts,tsx,mjs,cjs}" --ignore-path .gitignore; then
|
||||
echo "::warning::prettier reported issues"
|
||||
fi
|
||||
npx --yes prettier --check "**/*.{js,jsx,ts,tsx,mjs,cjs}" --ignore-path .gitignore
|
||||
else
|
||||
echo "No JS/TS files found"
|
||||
fi
|
||||
|
||||
@@ -24,9 +24,7 @@ jobs:
|
||||
npm install --no-audit --no-fund
|
||||
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 ! npx --yes eslint .; then
|
||||
echo "::warning::eslint reported issues"
|
||||
fi
|
||||
npx --yes eslint .
|
||||
else
|
||||
echo "No eslint config found"
|
||||
fi
|
||||
|
||||
@@ -24,6 +24,4 @@ jobs:
|
||||
python3 -m venv .venv
|
||||
. .venv/bin/activate
|
||||
pip install --no-cache-dir ruff
|
||||
if ! ruff check .; then
|
||||
echo "::warning::ruff reported issues"
|
||||
fi
|
||||
ruff check .
|
||||
|
||||
@@ -28,9 +28,7 @@ jobs:
|
||||
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
|
||||
find . -name "*.qml" -print0 | xargs -0 qmllint
|
||||
else
|
||||
echo "No QML files found"
|
||||
fi
|
||||
|
||||
@@ -21,9 +21,7 @@ jobs:
|
||||
- name: Rustfmt
|
||||
run: |
|
||||
if [ -f Cargo.toml ]; then
|
||||
if ! cargo fmt --check; then
|
||||
echo "::warning::rustfmt reported issues"
|
||||
fi
|
||||
cargo fmt --check
|
||||
else
|
||||
echo "No Rust project found"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user