Repository navigation
fix(dev): respond with 413/408 instead of crashing on oversized or slow request bodies #7380
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: Format | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - '**' | |
| - '!release-please--**' | |
| jobs: | |
| format: | |
| name: Format | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Read primary Node version | |
| id: node | |
| run: echo "version=$(yq eval '.primary_node_version' .github/test-matrix.yml)" >> "$GITHUB_OUTPUT" | |
| - uses: actions/setup-node@v7 | |
| with: | |
| node-version: ${{ steps.node.outputs.version }} | |
| cache: npm | |
| - name: Install pinned npm version | |
| run: npm install -g npm@11.19.1 | |
| - name: Install dependencies | |
| run: npm ci --no-audit | |
| - name: Check formatting | |
| run: npm run format:check |