File
Blob: .github/workflows/check.yml
| 1 | name: Checks |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | pull_request: |
| 6 | |
| 7 | permissions: |
| 8 | contents: read |
| 9 | |
| 10 | jobs: |
| 11 | host: |
| 12 | runs-on: ubuntu-latest |
| 13 | steps: |
| 14 | - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 |
| 15 | with: |
| 16 | persist-credentials: false |
| 17 | - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 |
| 18 | with: |
| 19 | node-version: "24" |
| 20 | cache: npm |
| 21 | cache-dependency-path: worker/package-lock.json |
| 22 | - name: Install the host Rust toolchain |
| 23 | run: rustup toolchain install 1.88.0 --profile minimal --component rustfmt,clippy |
| 24 | - name: Install the pinned C formatter |
| 25 | run: make setup-c-format |
| 26 | - name: Install web dependencies without lifecycle scripts |
| 27 | run: npm ci --ignore-scripts --prefix worker |
| 28 | - name: Check source formatting and portable code |
| 29 | run: make check CARGO='cargo +1.88.0' |
| 30 | - name: Check transport receive limits and packet serialization |
| 31 | run: make check-transport-patches CARGO='cargo +1.88.0' |
| 32 | - name: Check the Worker and Durable Object lifecycle |
| 33 | run: make test-worker |
| 34 | - name: Check the production bundle and scheduled alarm |
| 35 | run: make test-worker-bundle |