rustfmt w/o project
Format (JS/TS) / format (pull_request) Failing after 7s
Lint (JS/TS) / lint (pull_request) Failing after 15s
Lint (Python) / lint (pull_request) Failing after 17s
Lint (Rust) / lint (pull_request) Failing after 38s

This commit is contained in:
2026-05-16 01:37:38 +02:00
parent 55e9c0f267
commit c30891de83
+4 -2
View File
@@ -20,8 +20,10 @@ jobs:
- name: Rustfmt
run: |
if [ -f Cargo.toml ]; then
cargo fmt --check
if [ -n "$(find . -name "Cargo.toml" -print -quit)" ]; then
find . -name "Cargo.toml" -print0 | while IFS= read -r -d '' manifest; do
cargo fmt --check --manifest-path "$manifest"
done
elif [ -n "$(find . -name "*.rs" -print -quit)" ]; then
echo "Rust files found but no Cargo.toml"
exit 1