fix(pages): allow empty nojekyll marker in artifact validation #45
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: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ci-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| static-gates: | |
| name: Static repository gates | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 8 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Reject empty critical files | |
| run: | | |
| test -s Cargo.toml | |
| test -s index.html | |
| test -s web/app.js | |
| test -s web/styles.css | |
| test -s scripts/build_web.sh | |
| test -s tools/check_hygiene.py | |
| test -s .github/workflows/ci.yml | |
| test -s .github/workflows/pages.yml | |
| - name: Reject workflow/script one-line corruption | |
| run: | | |
| test "$(wc -l < .github/workflows/ci.yml)" -ge 45 | |
| test "$(wc -l < .github/workflows/pages.yml)" -ge 55 | |
| test "$(wc -l < scripts/build_web.sh)" -ge 40 | |
| test "$(wc -l < Cargo.toml)" -ge 20 | |
| - name: Check repository hygiene | |
| run: | | |
| python3 tools/check_hygiene.py | |
| - name: Check shell syntax | |
| run: | | |
| bash -n scripts/build_web.sh |