feat(query): add useSkipToken option to hold unresolved params (#3994) #2026
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: PR checks | |
| on: | |
| pull_request: | |
| branches: | |
| - 'master' | |
| - 'next' | |
| # Also run after merge. Without this, drift that lands on master (e.g. a | |
| # generator change whose fixtures were only partly regenerated) goes | |
| # unnoticed until it fails an unrelated PR days later. | |
| push: | |
| branches: | |
| - 'master' | |
| - 'next' | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| pr-checks: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| node-version: [22.x] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Setup Vite+ | |
| uses: voidzero-dev/setup-vp@v1 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: true | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| - name: Install dependencies | |
| run: vp install --frozen-lockfile | |
| - name: Check formatting | |
| run: vp fmt --check | |
| - name: Build packages | |
| run: vp run -w build:release | |
| - name: Lint packages | |
| run: vp run -w lint | |
| - name: Lint samples | |
| run: vp run -w lint:samples | |
| - name: Lint snapshots | |
| run: vp run -w lint:snapshots | |
| - name: Typecheck packages | |
| run: vp run -w typecheck | |
| - name: Test packages | |
| run: vp run -w test | |
| - name: Verify snapshot | |
| # this step also runs the generate-api task | |
| run: vp run -w test:snapshots | |
| - name: Test samples | |
| # Runtime tests for the generated clients (Angular TestBed suites, | |
| # vue-query component tests, and the tsc/svelte-check type gates). | |
| # The snapshot step above only proves generated code matches the | |
| # committed fixtures; this proves it actually runs. | |
| # | |
| # Must stay after "Verify snapshot": that step regenerates every | |
| # sample's client, and several samples gitignore their generated | |
| # output, so these tests cannot compile on a fresh checkout until | |
| # it has run. | |
| run: vp run -w test:samples | |
| - name: Verify generated code can build | |
| run: vp run -F orval-tests build | |
| publish-preview: | |
| needs: pr-checks | |
| # Pull requests only: this job checks out | |
| # `github.event.pull_request.head.sha` and comments the preview back on | |
| # the PR, neither of which exists on a push event. | |
| if: github.event_name == 'pull_request' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v7 | |
| with: | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| persist-credentials: false | |
| - name: Setup Vite+ | |
| uses: voidzero-dev/setup-vp@v1 | |
| with: | |
| node-version: 24 | |
| cache: true | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| - name: Install dependencies | |
| run: vp install --frozen-lockfile | |
| - name: Build packages | |
| run: vp run -w build:release | |
| - name: Publish preview packages | |
| run: bun run pkg-pr-new publish './packages/*' --bun --commentWithSha --packageManager=bun |