feat: apply pr reviews #3636
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: OpenAPI | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - '*' | |
| - '!*-test' | |
| pull_request: | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| branches: | |
| - 'main' | |
| - 'release/**' | |
| jobs: | |
| validate_projects_openapis: | |
| runs-on: ubuntu-latest | |
| name: OpenAPI Validation | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| project: | |
| - api | |
| - dataset-api | |
| - organization-api | |
| - solution-api | |
| - workspace-api | |
| - runner-api | |
| - run-api | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Java | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '23' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v5 | |
| with: | |
| gradle-version: '8.14' | |
| cache-disabled: true | |
| - name: Validate '${{ matrix.project }}' definition | |
| run: ./gradlew :cosmotech-${{ matrix.project }}:openApiValidate | tee validate.log | |
| - name: Check issues and recommendations | |
| run: grep -qvz "Spec has issues or recommendations" validate.log |