5dcc35a1b3
The acceptance gate was hardcoded to run cargo clippy, which fails on non-Rust projects (Go, Node, etc.). Now the gate only runs script/test which is project-specific. Clippy is added to storkit's own script/test so Rust linting is preserved for this project. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
27 lines
872 B
Bash
Executable File
27 lines
872 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
|
|
|
|
echo "=== Running cargo clippy ==="
|
|
cargo clippy --manifest-path "$PROJECT_ROOT/Cargo.toml" --all-targets --all-features
|
|
|
|
echo "=== Running Rust tests ==="
|
|
cargo test --manifest-path "$PROJECT_ROOT/Cargo.toml"
|
|
|
|
echo "=== Running frontend unit tests ==="
|
|
if [ -d "$PROJECT_ROOT/frontend" ]; then
|
|
cd "$PROJECT_ROOT/frontend"
|
|
npm test
|
|
else
|
|
echo "Skipping frontend tests (no frontend directory)"
|
|
fi
|
|
|
|
# Disabled: e2e tests may be causing merge pipeline hangs (no running server
|
|
# in merge workspace → Playwright blocks indefinitely). Re-enable once confirmed.
|
|
# Disabled: e2e tests cause merge pipeline hangs (no running server
|
|
# in merge workspace → Playwright blocks indefinitely).
|
|
# echo "=== Running e2e tests ==="
|
|
# npm run test:e2e
|