Update README with CI and Pages badges #13
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: Validate | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| validate: | |
| name: Validate Structure | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Check required files | |
| run: | | |
| for f in README.md LICENSE .gitignore; do | |
| test -f "$f" || { echo "Missing $f"; exit 1; } | |
| done | |
| echo "All required files present" | |
| - name: Validate JSON files | |
| run: | | |
| find . -name "*.json" -not -path "./.git/*" | while read -r file; do | |
| echo "Validating $file" | |
| python3 -m json.tool "$file" > /dev/null || exit 1 | |
| done | |
| echo "All JSON files valid" | |
| - name: Check scripts are executable | |
| run: | | |
| for f in scripts/*.sh; do | |
| test -x "$f" || { echo "$f is not executable"; exit 1; } | |
| done | |
| echo "All scripts executable" | |
| shellcheck: | |
| name: ShellCheck | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Run ShellCheck | |
| run: | | |
| for f in scripts/*.sh; do | |
| echo "Checking $f" | |
| shellcheck -S error "$f" || exit 1 | |
| done |