-
Notifications
You must be signed in to change notification settings - Fork 27.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'canary' into respect-cache-headers
# Conflicts: # packages/next/next-server/server/image-optimizer.ts
- Loading branch information
Showing
1,455 changed files
with
159,417 additions
and
103,303 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
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,6 +1,6 @@ | ||
# Learn how to add code owners here: | ||
# https://help.github.com/en/articles/about-code-owners | ||
|
||
* @timneutkens @Timer @ijjk @lfades @divmain | ||
/docs/ @timneutkens @Timer @ijjk @lfades @divmain @leerob | ||
/examples/ @timneutkens @Timer @ijjk @lfades @divmain @leerob | ||
* @timneutkens @ijjk @lfades @divmain @shuding | ||
/docs/ @timneutkens @ijjk @lfades @divmain @shuding @leerob | ||
/examples/ @timneutkens @ijjk @lfades @divmain @shuding @leerob |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!-- | ||
Thanks for opening a PR! Your contribution is much appreciated. | ||
In order to make sure your PR is handled as smoothly as possible we request that you follow the checklist sections below. | ||
Choose the right checklist for the change that you're making: | ||
--> | ||
|
||
## Bug | ||
|
||
- [ ] Related issues linked using `fixes #number` | ||
- [ ] Integration tests added | ||
|
||
## Feature | ||
|
||
- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. | ||
- [ ] Related issues linked using `fixes #number` | ||
- [ ] Integration tests added | ||
- [ ] Documentation added | ||
- [ ] Telemetry added. In case of a feature if it's used or not. | ||
|
||
## Documentation / Examples | ||
|
||
- [ ] Make sure the linting passes |
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 |
---|---|---|
|
@@ -126,30 +126,28 @@ jobs: | |
- run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p | ||
if: ${{needs.build.outputs.docsChange != 'docs only change'}} | ||
|
||
- run: yarn add -W --dev [email protected] [email protected] | ||
- run: cd test/integration/with-electron/app && yarn | ||
if: ${{needs.build.outputs.docsChange != 'docs only change'}} | ||
|
||
- run: xvfb-run node run-tests.js test/integration/with-electron/test/index.test.js | ||
if: ${{needs.build.outputs.docsChange != 'docs only change'}} | ||
|
||
testYarnPnP: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
env: | ||
NODE_OPTIONS: '--unhandled-rejections=strict' | ||
YARN_COMPRESSION_LEVEL: '0' | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/cache@v2 | ||
if: ${{needs.build.outputs.docsChange != 'docs only change'}} | ||
id: restore-build | ||
with: | ||
fetch-depth: 25 | ||
|
||
- run: echo ::set-output name=DOCS_CHANGE::$(node skip-docs-change.js echo 'not-docs-only-change') | ||
id: docs-change | ||
|
||
- run: yarn install --frozen-lockfile --check-files | ||
if: ${{steps.docs-change.outputs.DOCS_CHANGE != 'docs only change'}} | ||
path: ./* | ||
key: ${{ github.sha }} | ||
|
||
- run: bash ./test-pnp.sh | ||
if: ${{steps.docs-change.outputs.DOCS_CHANGE != 'docs only change'}} | ||
if: ${{needs.build.outputs.docsChange != 'docs only change'}} | ||
|
||
testsPass: | ||
name: thank you, next | ||
|
@@ -158,73 +156,34 @@ jobs: | |
steps: | ||
- run: exit 0 | ||
|
||
testFutureDependencies: | ||
name: Webpack 5 (Basic, Production, Acceptance) | ||
runs-on: ubuntu-latest | ||
env: | ||
NEXT_TELEMETRY_DISABLED: 1 | ||
NEXT_TEST_JOB: 1 | ||
HEADLESS: true | ||
NEXT_PRIVATE_TEST_WEBPACK5_MODE: 1 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 25 | ||
|
||
- run: echo ::set-output name=DOCS_CHANGE::$(node skip-docs-change.js echo 'not-docs-only-change') | ||
id: docs-change | ||
|
||
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* | ||
if: ${{ steps.docs-change.outputs.DOCS_CHANGE != 'docs only change' }} | ||
|
||
- run: yarn install --check-files | ||
if: ${{ steps.docs-change.outputs.DOCS_CHANGE != 'docs only change' }} | ||
|
||
- run: xvfb-run node run-tests.js test/integration/{fallback-modules,link-ref,production,basic,async-modules,font-optimization,ssr-ctx}/test/index.test.js test/acceptance/*.test.js | ||
if: ${{ steps.docs-change.outputs.DOCS_CHANGE != 'docs only change' }} | ||
|
||
testLegacyReact: | ||
name: React 16 + Webpack 4 (Basic, Production, Acceptance) | ||
testLegacyWebpack: | ||
name: Webpack 4 (Basic, Production, Acceptance) | ||
runs-on: ubuntu-latest | ||
needs: build | ||
env: | ||
NEXT_TELEMETRY_DISABLED: 1 | ||
NEXT_TEST_JOB: 1 | ||
HEADLESS: true | ||
NEXT_PRIVATE_TEST_WEBPACK4_MODE: 1 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/cache@v2 | ||
if: ${{needs.build.outputs.docsChange != 'docs only change'}} | ||
id: restore-build | ||
with: | ||
fetch-depth: 25 | ||
|
||
- run: echo ::set-output name=DOCS_CHANGE::$(node skip-docs-change.js echo 'not-docs-only-change') | ||
id: docs-change | ||
|
||
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* | ||
if: ${{ steps.docs-change.outputs.DOCS_CHANGE != 'docs only change' }} | ||
|
||
- run: cat package.json | jq '.resolutions.react = "^16.14.0"' > package.json.tmp && mv package.json.tmp package.json | ||
if: ${{ steps.docs-change.outputs.DOCS_CHANGE != 'docs only change' }} | ||
|
||
- run: cat package.json | jq '.resolutions."react-dom" = "^16.14.0"' > package.json.tmp && mv package.json.tmp package.json | ||
if: ${{ steps.docs-change.outputs.DOCS_CHANGE != 'docs only change' }} | ||
|
||
- run: yarn install --check-files | ||
if: ${{ steps.docs-change.outputs.DOCS_CHANGE != 'docs only change' }} | ||
|
||
- run: yarn list react react-dom | ||
if: ${{ steps.docs-change.outputs.DOCS_CHANGE != 'docs only change' }} | ||
path: ./* | ||
key: ${{ github.sha }} | ||
|
||
- run: xvfb-run node run-tests.js test/integration/{link-ref,production,basic,async-modules,font-optimization,ssr-ctx,worker-loader}/test/index.test.js test/acceptance/*.test.js | ||
if: ${{ steps.docs-change.outputs.DOCS_CHANGE != 'docs only change' }} | ||
- run: xvfb-run node run-tests.js test/integration/{basic,fallback-modules,link-ref,production,async-modules,font-optimization,ssr-ctx}/test/index.test.js test/acceptance/*.test.js | ||
if: ${{needs.build.outputs.docsChange != 'docs only change'}} | ||
|
||
testFirefox: | ||
name: Test Firefox (production) | ||
runs-on: ubuntu-latest | ||
needs: build | ||
env: | ||
HEADLESS: true | ||
BROWSERNAME: 'firefox' | ||
BROWSER_NAME: 'firefox' | ||
NEXT_TELEMETRY_DISABLED: 1 | ||
steps: | ||
- uses: actions/cache@v2 | ||
|
@@ -233,7 +192,7 @@ jobs: | |
with: | ||
path: ./* | ||
key: ${{ github.sha }} | ||
- run: node run-tests.js test/integration/production/test/index.test.js | ||
- run: node run-tests.js -c 1 test/integration/production/test/index.test.js | ||
if: ${{needs.build.outputs.docsChange != 'docs only change'}} | ||
|
||
testSafari: | ||
|
@@ -242,7 +201,7 @@ jobs: | |
needs: build | ||
env: | ||
BROWSERSTACK: true | ||
BROWSERNAME: 'safari' | ||
BROWSER_NAME: 'safari' | ||
NEXT_TELEMETRY_DISABLED: 1 | ||
SKIP_LOCAL_SELENIUM_SERVER: true | ||
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }} | ||
|
@@ -254,7 +213,7 @@ jobs: | |
with: | ||
path: ./* | ||
key: ${{ github.sha }} | ||
- run: '[[ -z "$BROWSERSTACK_ACCESS_KEY" ]] && echo "Skipping for PR" || node run-tests.js test/integration/production/test/index.test.js' | ||
- run: '[[ -z "$BROWSERSTACK_ACCESS_KEY" ]] && echo "Skipping for PR" || node run-tests.js -c 1 test/integration/production/test/index.test.js' | ||
if: ${{needs.build.outputs.docsChange != 'docs only change'}} | ||
|
||
testSafariOld: | ||
|
@@ -264,7 +223,7 @@ jobs: | |
env: | ||
BROWSERSTACK: true | ||
LEGACY_SAFARI: true | ||
BROWSERNAME: 'safari' | ||
BROWSER_NAME: 'safari' | ||
NEXT_TELEMETRY_DISABLED: 1 | ||
SKIP_LOCAL_SELENIUM_SERVER: true | ||
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }} | ||
|
@@ -276,7 +235,7 @@ jobs: | |
with: | ||
path: ./* | ||
key: ${{ github.sha }} | ||
- run: '[[ -z "$BROWSERSTACK_ACCESS_KEY" ]] && echo "Skipping for PR" || node run-tests.js test/integration/production-nav/test/index.test.js' | ||
- run: '[[ -z "$BROWSERSTACK_ACCESS_KEY" ]] && echo "Skipping for PR" || node run-tests.js -c 1 test/integration/production-nav/test/index.test.js' | ||
if: ${{needs.build.outputs.docsChange != 'docs only change'}} | ||
|
||
publishRelease: | ||
|
Oops, something went wrong.