Skip to content

Simplify CI workflow #6

Simplify CI workflow

Simplify CI workflow #6

Workflow file for this run

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