Skip to content

Commit

Permalink
Use next-11 tag
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Dec 4, 2021
1 parent 303bc0f commit 66de88d
Show file tree
Hide file tree
Showing 4 changed files with 129 additions and 129 deletions.
252 changes: 126 additions & 126 deletions .github/workflows/build_test_deploy.yml
Expand Up @@ -41,7 +41,7 @@ jobs:

- 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
# - run: node run-tests.js --timings --write-timings -g 1/1
- name: Check docs only change
run: echo ::set-output name=DOCS_CHANGE::$(node skip-docs-change.js echo 'not-docs-only-change')
id: docs-change
Expand Down Expand Up @@ -132,138 +132,138 @@ jobs:
- run: node run-tests.js --type unit
if: ${{needs.build.outputs.docsChange != 'docs only change'}}

testIntegration:
name: Test Integration
runs-on: ubuntu-latest
needs: build
env:
NEXT_TELEMETRY_DISABLED: 1
NEXT_TEST_JOB: 1
HEADLESS: true
strategy:
fail-fast: false
matrix:
group: [1, 2, 3, 4, 5, 6]
steps:
- name: Setup node
uses: actions/setup-node@v2
if: ${{ steps.docs-change.outputs.docsChange != 'docs only change' }}
with:
node-version: 14

- run: echo ${{needs.build.outputs.docsChange}}

# https://github.com/actions/virtual-environments/issues/1187
- name: tune linux network
run: sudo ethtool -K eth0 tx off rx off

- uses: actions/cache@v2
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
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
if: ${{needs.build.outputs.docsChange != 'docs only change'}}

- run: xvfb-run node run-tests.js --timings -g ${{ matrix.group }}/6 -c 3
if: ${{needs.build.outputs.docsChange != 'docs only change'}}

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:
- name: Setup node
uses: actions/setup-node@v2
if: ${{ steps.docs-change.outputs.docsChange != 'docs only change' }}
with:
node-version: 14

- uses: actions/cache@v2
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
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
if: ${{needs.build.outputs.docsChange != 'docs only change'}}

- 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:
- name: Setup node
uses: actions/setup-node@v2
if: ${{ steps.docs-change.outputs.docsChange != 'docs only change' }}
with:
node-version: 14

- uses: actions/cache@v2
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
id: restore-build
with:
path: ./*
key: ${{ github.sha }}

- run: bash ./scripts/test-pnp.sh
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
# testIntegration:
# name: Test Integration
# runs-on: ubuntu-latest
# needs: build
# env:
# NEXT_TELEMETRY_DISABLED: 1
# NEXT_TEST_JOB: 1
# HEADLESS: true
# strategy:
# fail-fast: false
# matrix:
# group: [1, 2, 3, 4, 5, 6]
# steps:
# - name: Setup node
# uses: actions/setup-node@v2
# if: ${{ steps.docs-change.outputs.docsChange != 'docs only change' }}
# with:
# node-version: 14

# - run: echo ${{needs.build.outputs.docsChange}}

# # https://github.com/actions/virtual-environments/issues/1187
# - name: tune linux network
# run: sudo ethtool -K eth0 tx off rx off

# - uses: actions/cache@v2
# if: ${{needs.build.outputs.docsChange != 'docs only change'}}
# 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
# if: ${{needs.build.outputs.docsChange != 'docs only change'}}

# - run: xvfb-run node run-tests.js --timings -g ${{ matrix.group }}/6 -c 3
# if: ${{needs.build.outputs.docsChange != 'docs only change'}}

# 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:
# - name: Setup node
# uses: actions/setup-node@v2
# if: ${{ steps.docs-change.outputs.docsChange != 'docs only change' }}
# with:
# node-version: 14

# - uses: actions/cache@v2
# if: ${{needs.build.outputs.docsChange != 'docs only change'}}
# 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
# if: ${{needs.build.outputs.docsChange != 'docs only change'}}

# - 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:
# - name: Setup node
# uses: actions/setup-node@v2
# if: ${{ steps.docs-change.outputs.docsChange != 'docs only change' }}
# with:
# node-version: 14

# - uses: actions/cache@v2
# if: ${{needs.build.outputs.docsChange != 'docs only change'}}
# id: restore-build
# with:
# path: ./*
# key: ${{ github.sha }}

# - run: bash ./scripts/test-pnp.sh
# if: ${{needs.build.outputs.docsChange != 'docs only change'}}

testsPass:
name: thank you, next
runs-on: ubuntu-latest
needs: [lint, checkPrecompiled, testIntegration, testUnit, testYarnPnP]
needs: [lint, checkPrecompiled, testUnit]
steps:
- run: exit 0

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:
- name: Setup node
uses: actions/setup-node@v2
if: ${{ steps.docs-change.outputs.docsChange != 'docs only change' }}
with:
node-version: 14

# https://github.com/actions/virtual-environments/issues/1187
- name: tune linux network
run: sudo ethtool -K eth0 tx off rx off

- uses: actions/cache@v2
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
id: restore-build
with:
path: ./*
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
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
# 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:
# - name: Setup node
# uses: actions/setup-node@v2
# if: ${{ steps.docs-change.outputs.docsChange != 'docs only change' }}
# with:
# node-version: 14

# # https://github.com/actions/virtual-environments/issues/1187
# - name: tune linux network
# run: sudo ethtool -K eth0 tx off rx off

# - uses: actions/cache@v2
# if: ${{needs.build.outputs.docsChange != 'docs only change'}}
# id: restore-build
# with:
# path: ./*
# 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
# if: ${{needs.build.outputs.docsChange != 'docs only change'}}

testFirefox:
name: Test Firefox (production)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -29,7 +29,7 @@
"types": "lerna run types --stream",
"typescript": "lerna run typescript",
"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",
"lint-staged": "lint-staged",
"next-with-deps": "./scripts/next-with-deps.sh",
Expand Down
2 changes: 1 addition & 1 deletion scripts/publish-native.js
Expand Up @@ -37,7 +37,7 @@ const cwd = process.cwd()
`npm publish ${path.join(
nativePackagesDir,
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
execSync(
Expand Down
2 changes: 1 addition & 1 deletion scripts/publish-release.sh
Expand Up @@ -27,7 +27,7 @@ fi

if [[ ! $(git describe --exact-match 2> /dev/null || :) =~ -canary ]];then
echo "Publishing stable"
yarn run lerna publish from-git --no-git-reset --yes
yarn run lerna publish from-git --npm-tag next-11 --no-git-reset --yes

# Make sure to exit script with code 1 if publish failed
if [[ ! $? -eq 0 ]];then
Expand Down

0 comments on commit 66de88d

Please sign in to comment.