-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'tanstack/alpha' into refactor/react-que…
…ry-devtools-panels
- Loading branch information
Showing
45 changed files
with
439 additions
and
148 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,9 @@ on: | |
- 'alpha' | ||
- 'beta' | ||
env: | ||
NX_DAEMON: 'false' | ||
NX_DAEMON: false | ||
NX_VERBOSE_LOGGING: true | ||
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} | ||
jobs: | ||
test-and-publish: | ||
if: github.repository == 'TanStack/query' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/alpha' || github.ref == 'refs/heads/beta') | ||
|
@@ -37,7 +39,7 @@ jobs: | |
- name: Run Tests | ||
uses: nick-fields/[email protected] | ||
with: | ||
command: pnpm run test:ci | ||
command: pnpm run test:ci --base=${{ github.event.before }} | ||
timeout_minutes: 10 | ||
max_attempts: 3 | ||
- name: Publish | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,19 @@ | ||
name: pr | ||
on: [pull_request] | ||
env: | ||
NX_DAEMON: 'false' | ||
NX_DAEMON: false | ||
NX_VERBOSE_LOGGING: true | ||
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} | ||
jobs: | ||
test: | ||
name: 'Test' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.head_ref }} | ||
repository: ${{github.event.pull_request.head.repo.full_name}} | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: 7 | ||
|
@@ -20,7 +26,7 @@ jobs: | |
- name: Run Tests | ||
uses: nick-fields/[email protected] | ||
with: | ||
command: pnpm test:lib | ||
command: pnpm test:lib --base=${{ github.event.pull_request.base.sha }} | ||
timeout_minutes: 5 | ||
max_attempts: 3 | ||
- name: Upload coverage to Codecov | ||
|
@@ -30,6 +36,10 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.head_ref }} | ||
repository: ${{github.event.pull_request.head.repo.full_name}} | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: 7 | ||
|
@@ -39,12 +49,16 @@ jobs: | |
cache: 'pnpm' | ||
- name: Install dependencies | ||
run: pnpm --filter "./packages/**" --filter query --prefer-offline install | ||
- run: pnpm run test:eslint | ||
- run: pnpm run test:eslint --base=${{ github.event.pull_request.base.sha }} | ||
typecheck: | ||
name: 'Typecheck' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.head_ref }} | ||
repository: ${{github.event.pull_request.head.repo.full_name}} | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: 7 | ||
|
@@ -54,12 +68,16 @@ jobs: | |
cache: 'pnpm' | ||
- name: Install dependencies | ||
run: pnpm --filter "./packages/**" --filter query --prefer-offline install | ||
- run: pnpm run test:types | ||
- run: pnpm run test:types --base=${{ github.event.pull_request.base.sha }} | ||
format: | ||
name: 'Format' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.head_ref }} | ||
repository: ${{github.event.pull_request.head.repo.full_name}} | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: 7 | ||
|
@@ -69,7 +87,7 @@ jobs: | |
cache: 'pnpm' | ||
- name: Install dependencies | ||
run: pnpm --filter "./packages/**" --filter query --prefer-offline install | ||
- run: pnpm run test:format | ||
- run: pnpm run test:format --base=${{ github.event.pull_request.base.sha }} | ||
test-build: | ||
name: 'Test Build' | ||
runs-on: ubuntu-latest | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,3 +43,5 @@ node_modules | |
.cache | ||
dist | ||
.idea | ||
|
||
nx-cloud.env |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.