ci: port docs example compilation check to all client languages #2
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: Check Java Examples | |
| # Syntax-validates the Java code examples in the docs. Extraction lives in | |
| # scripts/check_examples.py; the bundled validator (scripts/validators/java.py) | |
| # compiles each snippet with `javac` and treats only syntax-category | |
| # diagnostics as failures. See scripts/README.md. | |
| on: | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| check-java-examples: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout valkey-glide-docs | |
| uses: actions/checkout@v4 | |
| - name: Setup Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: "temurin" | |
| java-version: "17" | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.x" | |
| - name: Validate Java examples | |
| run: python scripts/check_examples.py --language java |