-
Notifications
You must be signed in to change notification settings - Fork 27.4k
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 feature/storybook-default-import
- Loading branch information
Showing
611 changed files
with
18,000 additions
and
6,101 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
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 |
---|---|---|
|
@@ -15,6 +15,7 @@ jobs: | |
- uses: actions/checkout@v2 | ||
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* | ||
- run: yarn install --frozen-lockfile --check-files | ||
- run: node run-tests.js --timings --write-timings -g 1/1 | ||
- uses: actions/cache@v2 | ||
id: cache-build | ||
with: | ||
|
@@ -46,8 +47,25 @@ jobs: | |
key: ${{ github.sha }} | ||
- run: ./check-pre-compiled.sh | ||
|
||
testAll: | ||
name: Test All | ||
testUnit: | ||
name: Test Unit | ||
runs-on: ubuntu-latest | ||
needs: build | ||
env: | ||
NEXT_TELEMETRY_DISABLED: 1 | ||
NEXT_TEST_JOB: 1 | ||
HEADLESS: true | ||
steps: | ||
- uses: actions/cache@v2 | ||
id: restore-build | ||
with: | ||
path: ./* | ||
key: ${{ github.sha }} | ||
|
||
- run: node run-tests.js --timings --type unit -g 1/1 | ||
|
||
testIntegration: | ||
name: Test Integration | ||
runs-on: ubuntu-latest | ||
needs: build | ||
env: | ||
|
@@ -68,7 +86,30 @@ jobs: | |
# TODO: remove after we fix watchpack watching too much | ||
- run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p | ||
|
||
- run: node run-tests.js --timings -g ${{ matrix.group }}/6 -c 3 | ||
- run: xvfb-run node run-tests.js --timings -g ${{ matrix.group }}/6 -c 3 | ||
|
||
testElectron: | ||
name: Test Electron | ||
runs-on: ubuntu-latest | ||
needs: build | ||
env: | ||
NEXT_TELEMETRY_DISABLED: 1 | ||
NEXT_TEST_JOB: 1 | ||
HEADLESS: true | ||
TEST_ELECTRON: 1 | ||
steps: | ||
- uses: actions/cache@v2 | ||
id: restore-build | ||
with: | ||
path: ./* | ||
key: ${{ github.sha }} | ||
|
||
# TODO: remove after we fix watchpack watching too much | ||
- run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p | ||
|
||
- run: yarn add -W --dev [email protected] [email protected] | ||
|
||
- run: xvfb-run node run-tests.js test/integration/with-electron/test/index.test.js | ||
|
||
testYarnPnP: | ||
runs-on: ubuntu-latest | ||
|
@@ -92,7 +133,7 @@ jobs: | |
testsPass: | ||
name: thank you, next | ||
runs-on: ubuntu-latest | ||
needs: [lint, checkPrecompiled, testAll, testYarnPnP] | ||
needs: [lint, checkPrecompiled, testIntegration, testUnit, testYarnPnP] | ||
steps: | ||
- run: exit 0 | ||
|
||
|
@@ -107,10 +148,12 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v2 | ||
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* | ||
- run: cat packages/next/package.json | jq '.resolutions.webpack = "^5.0.0-beta.30"' > package.json.tmp && mv package.json.tmp packages/next/package.json | ||
- run: cat packages/next/package.json | jq '.resolutions.react = "^17.0.0-rc.1"' > package.json.tmp && mv package.json.tmp packages/next/package.json | ||
- run: cat packages/next/package.json | jq '.resolutions."react-dom" = "^17.0.0-rc.1"' > package.json.tmp && mv package.json.tmp packages/next/package.json | ||
- run: cat package.json | jq '.resolutions.webpack = "^5.0.0-beta.30"' > package.json.tmp && mv package.json.tmp package.json | ||
- run: cat package.json | jq '.resolutions.react = "^17.0.1"' > package.json.tmp && mv package.json.tmp package.json | ||
- run: cat package.json | jq '.resolutions."react-dom" = "^17.0.1"' > package.json.tmp && mv package.json.tmp package.json | ||
- run: yarn install --check-files | ||
- run: yarn list webpack react react-dom | ||
- run: node run-tests.js test/integration/link-ref/test/index.test.js | ||
- run: node run-tests.js test/integration/production/test/index.test.js | ||
- run: node run-tests.js test/integration/basic/test/index.test.js | ||
- run: node run-tests.js test/integration/async-modules/test/index.test.js | ||
|
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 |
---|---|---|
|
@@ -31,6 +31,7 @@ examples/**/out | |
examples/**/.env*.local | ||
|
||
pr-stats.md | ||
test-timings.json | ||
|
||
# Vercel | ||
.vercel | ||
|
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.