forked from Christopherdominic/soroban-ajo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup-cicd.sh
More file actions
executable file
·32 lines (27 loc) · 912 Bytes
/
setup-cicd.sh
File metadata and controls
executable file
·32 lines (27 loc) · 912 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
#!/bin/bash
echo "🚀 Setting up CI/CD for Drips Repository"
echo "========================================"
echo ""
# Install dependencies
echo "📦 Installing dependencies..."
# Initialize Husky
echo "🪝 Initializing Husky..."
npx husky install
# Make hooks executable
echo "🔐 Making hooks executable..."
chmod +x .husky/pre-commit
chmod +x .husky/commit-msg
echo ""
echo "✅ CI/CD setup complete!"
echo ""
echo "Next steps:"
echo "1. Configure branch protection rules on GitHub (see documentation/CI_CD_SETUP.md)"
echo "2. Test pre-commit hook: Try committing code with console.log"
echo "3. Test commit-msg hook: Try an invalid commit message"
echo ""
echo "To test locally:"
echo " npm run lint # Run linting"
echo " npm run type-check # Run type checking"
echo " npm run build # Build all packages"
echo ""