Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
66de88d9
Unverified
Commit
66de88d9
authored
Dec 04, 2021
by
JJ Kasper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use next-11 tag
parent
303bc0f9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
129 additions
and
129 deletions
+129
-129
build_test_deploy.yml
.github/workflows/build_test_deploy.yml
+126
-126
package.json
package.json
+1
-1
publish-native.js
scripts/publish-native.js
+1
-1
publish-release.sh
scripts/publish-release.sh
+1
-1
No files found.
.github/workflows/build_test_deploy.yml
View file @
66de88d9
...
@@ -41,7 +41,7 @@ jobs:
...
@@ -41,7 +41,7 @@ jobs:
-
run
:
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
-
run
:
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
-
run
:
yarn install --frozen-lockfile --check-files
-
run
:
yarn install --frozen-lockfile --check-files
-
run
:
node run-tests.js --timings --write-timings -g 1/1
#
- run: node run-tests.js --timings --write-timings -g 1/1
-
name
:
Check docs only change
-
name
:
Check docs only change
run
:
echo ::set-output name=DOCS_CHANGE::$(node skip-docs-change.js echo 'not-docs-only-change')
run
:
echo ::set-output name=DOCS_CHANGE::$(node skip-docs-change.js echo 'not-docs-only-change')
id
:
docs-change
id
:
docs-change
...
@@ -132,138 +132,138 @@ jobs:
...
@@ -132,138 +132,138 @@ jobs:
-
run
:
node run-tests.js --type unit
-
run
:
node run-tests.js --type unit
if
:
${{needs.build.outputs.docsChange != 'docs only change'}}
if
:
${{needs.build.outputs.docsChange != 'docs only change'}}
testIntegration
:
#
testIntegration:
name
:
Test Integration
#
name: Test Integration
runs-on
:
ubuntu-latest
#
runs-on: ubuntu-latest
needs
:
build
#
needs: build
env
:
#
env:
NEXT_TELEMETRY_DISABLED
:
1
#
NEXT_TELEMETRY_DISABLED: 1
NEXT_TEST_JOB
:
1
#
NEXT_TEST_JOB: 1
HEADLESS
:
true
#
HEADLESS: true
strategy
:
#
strategy:
fail-fast
:
false
#
fail-fast: false
matrix
:
#
matrix:
group
:
[
1
,
2
,
3
,
4
,
5
,
6
]
#
group: [1, 2, 3, 4, 5, 6]
steps
:
#
steps:
-
name
:
Setup node
#
- name: Setup node
uses
:
actions/setup-node@v2
#
uses: actions/setup-node@v2
if
:
${{ steps.docs-change.outputs.docsChange != 'docs only change' }}
#
if: ${{ steps.docs-change.outputs.docsChange != 'docs only change' }}
with
:
#
with:
node-version
:
14
#
node-version: 14
-
run
:
echo ${{needs.build.outputs.docsChange}}
#
- run: echo ${{needs.build.outputs.docsChange}}
# https://github.com/actions/virtual-environments/issues/1187
#
# https://github.com/actions/virtual-environments/issues/1187
-
name
:
tune linux network
#
- name: tune linux network
run
:
sudo ethtool -K eth0 tx off rx off
#
run: sudo ethtool -K eth0 tx off rx off
-
uses
:
actions/cache@v2
#
- uses: actions/cache@v2
if
:
${{needs.build.outputs.docsChange != 'docs only change'}}
#
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
id
:
restore-build
#
id: restore-build
with
:
#
with:
path
:
./*
#
path: ./*
key
:
${{ github.sha }}
#
key: ${{ github.sha }}
# TODO: remove after we fix watchpack watching too much
#
# 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: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
if
:
${{needs.build.outputs.docsChange != 'docs only change'}}
#
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
-
run
:
xvfb-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
if
:
${{needs.build.outputs.docsChange != 'docs only change'}}
#
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
testElectron
:
#
testElectron:
name
:
Test Electron
#
name: Test Electron
runs-on
:
ubuntu-latest
#
runs-on: ubuntu-latest
needs
:
build
#
needs: build
env
:
#
env:
NEXT_TELEMETRY_DISABLED
:
1
#
NEXT_TELEMETRY_DISABLED: 1
NEXT_TEST_JOB
:
1
#
NEXT_TEST_JOB: 1
HEADLESS
:
true
#
HEADLESS: true
TEST_ELECTRON
:
1
#
TEST_ELECTRON: 1
steps
:
#
steps:
-
name
:
Setup node
#
- name: Setup node
uses
:
actions/setup-node@v2
#
uses: actions/setup-node@v2
if
:
${{ steps.docs-change.outputs.docsChange != 'docs only change' }}
#
if: ${{ steps.docs-change.outputs.docsChange != 'docs only change' }}
with
:
#
with:
node-version
:
14
#
node-version: 14
-
uses
:
actions/cache@v2
#
- uses: actions/cache@v2
if
:
${{needs.build.outputs.docsChange != 'docs only change'}}
#
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
id
:
restore-build
#
id: restore-build
with
:
#
with:
path
:
./*
#
path: ./*
key
:
${{ github.sha }}
#
key: ${{ github.sha }}
# TODO: remove after we fix watchpack watching too much
#
# 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: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
if
:
${{needs.build.outputs.docsChange != 'docs only change'}}
#
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
-
run
:
cd test/integration/with-electron/app && yarn
#
- run: cd test/integration/with-electron/app && yarn
if
:
${{needs.build.outputs.docsChange != 'docs only change'}}
#
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
-
run
:
xvfb-run node run-tests.js test/integration/with-electron/test/index.test.js
#
- run: xvfb-run node run-tests.js test/integration/with-electron/test/index.test.js
if
:
${{needs.build.outputs.docsChange != 'docs only change'}}
#
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
testYarnPnP
:
#
testYarnPnP:
runs-on
:
ubuntu-latest
#
runs-on: ubuntu-latest
needs
:
build
#
needs: build
env
:
#
env:
NODE_OPTIONS
:
'
--unhandled-rejections=strict'
#
NODE_OPTIONS: '--unhandled-rejections=strict'
YARN_COMPRESSION_LEVEL
:
'
0'
#
YARN_COMPRESSION_LEVEL: '0'
steps
:
#
steps:
-
name
:
Setup node
#
- name: Setup node
uses
:
actions/setup-node@v2
#
uses: actions/setup-node@v2
if
:
${{ steps.docs-change.outputs.docsChange != 'docs only change' }}
#
if: ${{ steps.docs-change.outputs.docsChange != 'docs only change' }}
with
:
#
with:
node-version
:
14
#
node-version: 14
-
uses
:
actions/cache@v2
#
- uses: actions/cache@v2
if
:
${{needs.build.outputs.docsChange != 'docs only change'}}
#
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
id
:
restore-build
#
id: restore-build
with
:
#
with:
path
:
./*
#
path: ./*
key
:
${{ github.sha }}
#
key: ${{ github.sha }}
-
run
:
bash ./scripts/test-pnp.sh
#
- run: bash ./scripts/test-pnp.sh
if
:
${{needs.build.outputs.docsChange != 'docs only change'}}
#
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
testsPass
:
testsPass
:
name
:
thank you, next
name
:
thank you, next
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
needs
:
[
lint
,
checkPrecompiled
,
test
Integration
,
testUnit
,
testYarnPnP
]
needs
:
[
lint
,
checkPrecompiled
,
test
Unit
]
steps
:
steps
:
-
run
:
exit 0
-
run
:
exit 0
testLegacyWebpack
:
#
testLegacyWebpack:
name
:
Webpack 4 (Basic, Production, Acceptance)
#
name: Webpack 4 (Basic, Production, Acceptance)
runs-on
:
ubuntu-latest
#
runs-on: ubuntu-latest
needs
:
build
#
needs: build
env
:
#
env:
NEXT_TELEMETRY_DISABLED
:
1
#
NEXT_TELEMETRY_DISABLED: 1
NEXT_TEST_JOB
:
1
#
NEXT_TEST_JOB: 1
HEADLESS
:
true
#
HEADLESS: true
NEXT_PRIVATE_TEST_WEBPACK4_MODE
:
1
#
NEXT_PRIVATE_TEST_WEBPACK4_MODE: 1
steps
:
#
steps:
-
name
:
Setup node
#
- name: Setup node
uses
:
actions/setup-node@v2
#
uses: actions/setup-node@v2
if
:
${{ steps.docs-change.outputs.docsChange != 'docs only change' }}
#
if: ${{ steps.docs-change.outputs.docsChange != 'docs only change' }}
with
:
#
with:
node-version
:
14
#
node-version: 14
# https://github.com/actions/virtual-environments/issues/1187
#
# https://github.com/actions/virtual-environments/issues/1187
-
name
:
tune linux network
#
- name: tune linux network
run
:
sudo ethtool -K eth0 tx off rx off
#
run: sudo ethtool -K eth0 tx off rx off
-
uses
:
actions/cache@v2
#
- uses: actions/cache@v2
if
:
${{needs.build.outputs.docsChange != 'docs only change'}}
#
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
id
:
restore-build
#
id: restore-build
with
:
#
with:
path
:
./*
#
path: ./*
key
:
${{ github.sha }}
#
key: ${{ github.sha }}
-
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
#
- 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'}}
#
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
testFirefox
:
testFirefox
:
name
:
Test Firefox (production)
name
:
Test Firefox (production)
...
...
package.json
View file @
66de88d9
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
"types"
:
"lerna run types --stream"
,
"types"
:
"lerna run types --stream"
,
"typescript"
:
"lerna run typescript"
,
"typescript"
:
"lerna run typescript"
,
"prepublish"
:
"lerna run prepublish"
,
"prepublish"
:
"lerna run prepublish"
,
"publish-canary"
:
"git pull && lerna version prerelease --preid canary --force-publish && release --pre --skip-questions"
,
"publish-canary"
:
"git
checkout canary && git
pull && lerna version prerelease --preid canary --force-publish && release --pre --skip-questions"
,
"publish-stable"
:
"lerna version --force-publish"
,
"publish-stable"
:
"lerna version --force-publish"
,
"lint-staged"
:
"lint-staged"
,
"lint-staged"
:
"lint-staged"
,
"next-with-deps"
:
"./scripts/next-with-deps.sh"
,
"next-with-deps"
:
"./scripts/next-with-deps.sh"
,
...
...
scripts/publish-native.js
View file @
66de88d9
...
@@ -37,7 +37,7 @@ const cwd = process.cwd()
...
@@ -37,7 +37,7 @@ const cwd = process.cwd()
`npm publish
${
path
.
join
(
`npm publish
${
path
.
join
(
nativePackagesDir
,
nativePackagesDir
,
platform
platform
)}
--access public
${
gitref
.
includes
(
'canary'
)
?
' --tag canary'
:
''
}
`
)}
--access public
--tag next-11
`
)
)
// lerna publish in next step will fail if git status is not clean
// lerna publish in next step will fail if git status is not clean
execSync
(
execSync
(
...
...
scripts/publish-release.sh
View file @
66de88d9
...
@@ -27,7 +27,7 @@ fi
...
@@ -27,7 +27,7 @@ fi
if
[[
!
$(
git describe
--exact-match
2> /dev/null
||
:
)
=
~
-canary
]]
;
then
if
[[
!
$(
git describe
--exact-match
2> /dev/null
||
:
)
=
~
-canary
]]
;
then
echo
"Publishing stable"
echo
"Publishing stable"
yarn run lerna publish from-git
--no-git-reset
--yes
yarn run lerna publish from-git
--n
pm-tag
next-11
--n
o-git-reset
--yes
# Make sure to exit script with code 1 if publish failed
# Make sure to exit script with code 1 if publish failed
if
[[
!
$?
-eq
0
]]
;
then
if
[[
!
$?
-eq
0
]]
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment