docs: reframe README with stronger standalone hook #20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Validate NAAb Scripts | |
| run: | | |
| echo "✅ Validating NAAb script syntax..." | |
| for file in *.naab modules/*.naab; do | |
| if [ -f "$file" ]; then | |
| echo " Checking $file" | |
| # Basic syntax validation | |
| if ! grep -q "^main\|^export fn\|^fn " "$file" 2>/dev/null; then | |
| echo "⚠️ Warning: $file may not be a valid NAAb script" | |
| fi | |
| fi | |
| done | |
| echo "✅ All scripts validated" | |
| - name: Check Configuration | |
| run: | | |
| echo "✅ Validating configuration files..." | |
| python3 -m json.tool config/risk_matrix.json > /dev/null | |
| echo "✅ risk_matrix.json is valid JSON" | |
| - name: Verify Directory Structure | |
| run: | | |
| echo "✅ Checking required directories..." | |
| for dir in modules src config; do | |
| if [ ! -d "$dir" ]; then | |
| echo "❌ Missing required directory: $dir" | |
| exit 1 | |
| fi | |
| done | |
| echo "✅ Directory structure OK" |