feat: search exact tag match avoiding pagination #6803
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: Validate API Spec | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| filter: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| api: ${{ steps.filter.outputs.api }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| - name: Filter paths | |
| id: filter | |
| uses: dorny/paths-filter@v3 | |
| with: | |
| filters: | | |
| api: | |
| - 'api/**' | |
| - 'api/package.json' | |
| - 'api/package-lock.json' | |
| typescript_api_spec_validation: | |
| needs: filter | |
| if: needs.filter.outputs.api == 'true' | |
| permissions: | |
| contents: 'read' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| fetch-depth: 1 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@eff380dfbcf941bf8832e4acb788cebe13dfd758 # v4.0.2 | |
| with: | |
| node-version: 'v22.5.1' | |
| - name: Install dependencies | |
| run: npm ci --legacy-peer-deps | |
| working-directory: './api' | |
| - name: make generate | |
| run: make generate | |
| working-directory: './api' | |
| - name: make fmt | |
| run: make fmt | |
| - name: Check for Uncommitted Changes | |
| run: | | |
| git diff --exit-code || (echo "::error::Uncommitted changes detected in OpenAPI spec. Please regenerate and commit them." && exit 1) | |
| - name: Validate API Examples | |
| run: make validate-examples | |
| working-directory: './api' | |
| - name: Lint OpenAPI with ARM rules | |
| run: make lint-openapi | |
| working-directory: './api' |