docs/setup: unify agent guidance and harden Pi/server provisioning #214
Workflow file for this run
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: Lint | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| shellcheck: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Run ShellCheck | |
| uses: ludeeus/action-shellcheck@2.0.0 | |
| with: | |
| scandir: . | |
| severity: warning | |
| json-validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Validate JSON files | |
| run: | | |
| failed=0 | |
| for f in $(find . -name '*.json' -not -path './.git/*'); do | |
| if ! jq empty "$f" 2>/dev/null; then | |
| echo "❌ Invalid JSON: $f" | |
| failed=1 | |
| else | |
| echo "✓ $f" | |
| fi | |
| done | |
| exit $failed | |
| validate-packages: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Validate packages.json schema | |
| run: bash scripts/validate-packages.sh | |
| python: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Check Python syntax | |
| run: | | |
| mapfile -d '' files < <(find . -name '*.py' -not -path './.git/*' -print0) | |
| bash scripts/check-python-syntax.sh "${files[@]}" | |
| - name: Test Glances disk aliases | |
| working-directory: linux-server/glances | |
| run: python3 -m unittest -v test_rename_disks.py | |
| dryrun-smoke: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Root setup.sh dry-run on every platform | |
| run: bash scripts/dryrun-smoke.sh | |
| shell-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Test Pi backup failure status | |
| run: bash linux-pi/backup/test-backup-failure.sh | |
| - name: Test CUPS policy rendering | |
| run: bash linux-pi/cups/test-setup.sh | |
| zsh-syntax: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install zsh | |
| run: sudo apt-get update && sudo apt-get install -y zsh | |
| - name: Run zsh -n on zsh scripts | |
| run: | | |
| failed=0 | |
| for f in $(find . -not -path './.git/*' \( -name '*.zsh' -o -name 'zshrc.example' \)); do | |
| if zsh -n "$f" 2>&1; then | |
| echo "✓ $f" | |
| else | |
| echo "❌ Syntax error: $f" | |
| failed=1 | |
| fi | |
| done | |
| exit $failed |