deps(deps): bump undici from 8.5.0 to 8.8.0 #352
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: Validate JSON Schema | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v7 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: pip install jsonschema | |
| - name: Ensure jq is present | |
| run: sudo apt update && sudo apt install -y jq | |
| - name: Extract $schema URL from server.json | |
| id: schema | |
| run: | | |
| SCHEMA_URL=$(jq -r '."$schema" // empty' server.json) | |
| echo "url=$SCHEMA_URL" >> "$GITHUB_OUTPUT" | |
| - name: Download schema | |
| env: | |
| SCHEMA_URL: ${{ steps.schema.outputs.url }} | |
| run: | | |
| curl -fL --retry 3 --retry-connrefused --connect-timeout 10 "$SCHEMA_URL" -o server.schema.json | |
| echo "Downloaded schema to server.schema.json" | |
| - name: Run JSON validation | |
| run: python .github/scripts/server_schema_validator.py |