Add commands flags based on static map #2714
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: Documentation Tests | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - 'emb-examples' | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| doctests: | |
| runs-on: ubuntu-latest | |
| services: | |
| redis: | |
| image: redis:latest | |
| options: >- | |
| --health-cmd "redis-cli ping" --health-interval 10s --health-timeout 5s --health-retries 5 | |
| ports: | |
| - 6379:6379 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Cache dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.m2/repository | |
| /var/cache/apt | |
| key: jedis-${{hashFiles('**/pom.xml')}} | |
| - name: Set up Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '11' | |
| distribution: 'temurin' | |
| - name: Maven offline | |
| run: | | |
| mvn -q dependency:go-offline | |
| - name: Run doctests | |
| run: | | |
| mvn -Pdoctests clean compile test |