-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.sh
More file actions
31 lines (25 loc) Β· 728 Bytes
/
test.sh
File metadata and controls
31 lines (25 loc) Β· 728 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
ο»Ώ#!/bin/bash
# test.sh - Simple test script for GitHub Actions
echo "π§ͺ Running Atomic Node Tests"
# Check Node.js version
node --version
# Check if node_modules exists
if [ -d "node_modules" ]; then
echo "β
node_modules found"
else
echo "β οΈ node_modules not found"
fi
# Check if package.json is valid
if node -e "JSON.parse(require('fs').readFileSync('package.json', 'utf8'))"; then
echo "β
package.json is valid"
else
echo "β package.json is invalid"
exit 1
fi
# Run type check if TypeScript is available
if [ -f "tsconfig.json" ]; then
echo "π Running TypeScript check"
npx tsc --noEmit --strict || echo "TypeScript check completed with warnings"
fi
echo "π All tests passed!"
exit 0