-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun-tests.sh
More file actions
executable file
·43 lines (37 loc) · 896 Bytes
/
Copy pathrun-tests.sh
File metadata and controls
executable file
·43 lines (37 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$ROOT_DIR"
if ! command -v npm >/dev/null 2>&1; then
echo "npm is required. Install Node.js 24 or newer." >&2
exit 1
fi
if ! command -v cargo >/dev/null 2>&1; then
echo "cargo is required. Install Rust 1.95 or newer." >&2
exit 1
fi
if [ ! -d node_modules ]; then
npm install
fi
npm test
npm run finder:check
npm run launch:check
npm run menu:check
npm run tauri:check
npm run theme:check
npm run build
npm run budget
npm run smoke
npm audit --audit-level=moderate
(
cd src-tauri
cargo fmt --check
cargo clippy --all-targets -- -D warnings
cargo test
cargo check
if command -v cargo-audit >/dev/null 2>&1; then
cargo audit --deny warnings
else
echo "cargo-audit is not installed; Rust advisory scan skipped. Install with: cargo install cargo-audit" >&2
fi
)