Unverified Commit 4c84ecc5 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub
parent eab68a9f
......@@ -54,23 +54,23 @@ jobs:
run: sudo ethtool -K eth0 tx off rx off
- name: Check non-docs only change
run: echo "::set-output name=DOCS_CHANGE::$(node scripts/run-for-change.js --not --type docs --exec echo 'nope')"
run: echo "DOCS_CHANGE=$(node scripts/run-for-change.js --not --type docs --exec echo 'nope')" >> $GITHUB_OUTPUT
id: docs-change
- run: echo ${{steps.docs-change.outputs.DOCS_CHANGE}}
- run: echo "::set-output name=SWC_CHANGE::$(node scripts/run-for-change.js --type next-swc --exec echo 'yup')"
- run: echo "SWC_CHANGE<<EOF" >> $GITHUB_OUTPUT; echo "$(node scripts/run-for-change.js --type next-swc --exec echo 'yup')" >> $GITHUB_OUTPUT; echo 'EOF' >> $GITHUB_OUTPUT
id: swc-change
- run: echo "::set-output name=TURBO_TOKEN::$(echo ${TURBO_TOKEN:-empty})"
- run: echo "TURBO_TOKEN=$(echo ${TURBO_TOKEN:-empty})" >> $GITHUB_OUTPUT
id: turbo-token
- run: echo ${{steps.swc-change.outputs.SWC_CHANGE}}
- run: echo "${{steps.swc-change.outputs.SWC_CHANGE}}"
- run: npm i -g pnpm@${PNPM_VERSION}
- id: get-store-path
run: echo ::set-output name=STORE_PATH::$(pnpm store path)
run: echo STORE_PATH=$(pnpm store path) >> $GITHUB_OUTPUT
- uses: actions/cache@v3
id: cache-pnpm-store
......@@ -89,13 +89,13 @@ jobs:
run: |
if [[ $(node ./scripts/check-is-release.js 2> /dev/null || :) = v* ]];
then
echo "::set-output name=IS_RELEASE::true"
echo "IS_RELEASE=true" >> $GITHUB_OUTPUT
else
echo "::set-output name=IS_RELEASE::false"
echo "IS_RELEASE=false" >> $GITHUB_OUTPUT
fi
# We use week in the turbo cache key to keep the cache from infinitely growing
- id: get-week
run: echo ::set-output name=WEEK::$(date +%U)
run: echo "WEEK=$(date +%U)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
id: cache-build
......@@ -134,10 +134,10 @@ jobs:
path: ./*
key: ${{ github.sha }}-${{ github.run_number }}
- run: echo "::set-output name=SWC_CHANGE::$(node scripts/run-for-change.js --type next-swc --exec echo 'yup')"
- run: echo "SWC_CHANGE<<EOF" >> $GITHUB_OUTPUT; echo "$(node scripts/run-for-change.js --type next-swc --exec echo 'yup')" >> $GITHUB_OUTPUT; echo 'EOF' >> $GITHUB_OUTPUT
id: swc-change
- run: echo ${{ steps.swc-change.outputs.SWC_CHANGE }}
- run: echo "${{ steps.swc-change.outputs.SWC_CHANGE }}"
- name: Install
uses: actions-rs/toolchain@v1
......@@ -264,7 +264,7 @@ jobs:
node: [16, 18]
group: [1, 2, 3, 4]
steps:
- run: echo ${{needs.build.outputs.docsChange}}
- run: echo "${{needs.build.outputs.docsChange}}"
# https://github.com/actions/virtual-environments/issues/1187
- name: tune linux network
......@@ -325,7 +325,7 @@ jobs:
node: [16, 18]
group: [1, 2, 3, 4, 5, 6, 7]
steps:
- run: echo ${{needs.build.outputs.docsChange}}
- run: echo "${{needs.build.outputs.docsChange}}"
# https://github.com/actions/virtual-environments/issues/1187
- name: tune linux network
......@@ -387,7 +387,7 @@ jobs:
node: [16, 18]
group: [1, 2, 3]
steps:
- run: echo ${{needs.build.outputs.docsChange}}
- run: echo "${{needs.build.outputs.docsChange}}"
# https://github.com/actions/virtual-environments/issues/1187
- name: tune linux network
......@@ -438,7 +438,7 @@ jobs:
node: [16, 18]
group: [1, 2, 3, 4, 5, 6, 7]
steps:
- run: echo ${{needs.build.outputs.docsChange}}
- run: echo "${{needs.build.outputs.docsChange}}"
# https://github.com/actions/virtual-environments/issues/1187
- name: tune linux network
......@@ -487,7 +487,7 @@ jobs:
NEXT_TEST_CNA: 1
steps:
- run: echo ${{needs.build.outputs.docsChange}}
- run: echo "${{needs.build.outputs.docsChange}}"
# https://github.com/actions/virtual-environments/issues/1187
- name: tune linux network
......@@ -506,7 +506,7 @@ jobs:
name: next-swc-test-binary
path: packages/next-swc/native
- run: echo "::set-output name=CNA_CHANGE::$(node scripts/run-for-change.js --type cna --always-canary --exec echo 'yup')"
- run: echo "CNA_CHANGE<<EOF" >> $GITHUB_OUTPUT; echo "$(node scripts/run-for-change.js --type cna --always-canary --exec echo 'yup')" >> $GITHUB_OUTPUT; echo "EOF" >> $GITHUB_OUTPUT
id: cna-change
- run: docker run --rm -v $(pwd):/work mcr.microsoft.com/playwright:v1.28.1-focal /bin/bash -c "cd /work && ls && curl https://install-node.vercel.app/v16 | FORCE=1 bash && node -v && npm i -g pnpm@${PNPM_VERSION} && xvfb-run node run-tests.js test/integration/create-next-app/index.test.ts test/integration/create-next-app/templates.test.ts >> /proc/1/fd/1"
......@@ -563,7 +563,7 @@ jobs:
25,
]
steps:
- run: echo ${{needs.build.outputs.docsChange}}
- run: echo "${{needs.build.outputs.docsChange}}"
# https://github.com/actions/virtual-environments/issues/1187
- name: tune linux network
......@@ -915,7 +915,7 @@ jobs:
with:
fetch-depth: 25
- run: echo "::set-output name=DOCS_CHANGE::$(node scripts/run-for-change.js --not --type docs --exec echo 'nope')"
- run: echo "DOCS_CHANGE=$(node scripts/run-for-change.js --not --type docs --exec echo 'nope')" >> $GITHUB_OUTPUT
id: docs-change
- name: Cache cargo registry
......@@ -934,7 +934,7 @@ jobs:
# We use week in the turbo cache key to keep the cache from infinitely growing
- id: get-week
run: echo ::set-output name=WEEK::$(date +%U)
run: echo "WEEK=$(date +%U)" >> $GITHUB_OUTPUT
- name: Turbo Cache
id: turbo-cache
......@@ -1002,10 +1002,10 @@ jobs:
with:
fetch-depth: 25
- run: echo "::set-output name=SWC_CHANGE::$(node scripts/run-for-change.js --type next-swc --exec echo 'yup')"
- run: echo "SWC_CHANGE<<EOF" >> $GITHUB_OUTPUT; echo "$(node scripts/run-for-change.js --type next-swc --exec echo 'yup')" >> $GITHUB_OUTPUT; echo 'EOF' >> $GITHUB_OUTPUT
id: swc-change
- run: echo ${{ steps.swc-change.outputs.SWC_CHANGE }}
- run: echo "${{ steps.swc-change.outputs.SWC_CHANGE }}"
- name: Install
if: ${{ steps.swc-change.outputs.SWC_CHANGE == 'yup' }}
......@@ -1308,10 +1308,10 @@ jobs:
- run: node ./scripts/pull-freebsd-cache.js
- name: check build exists
run: if [ -f packages/next-swc/native/next-swc.freebsd-x64.node ]; then echo "::set-output name=BUILD_EXISTS::yes"; else echo "::set-output name=BUILD_EXISTS::no"; fi
run: if [ -f packages/next-swc/native/next-swc.freebsd-x64.node ]; then echo "BUILD_EXISTS=yes" >> $GITHUB_OUTPUT; else echo "BUILD_EXISTS=no" >> $GITHUB_OUTPUT; fi
id: build-exists
- run: echo ${{steps.build-exists.outputs.BUILD_EXISTS}}
- run: echo "${{steps.build-exists.outputs.BUILD_EXISTS}}"
- name: Build
id: build
......@@ -1482,7 +1482,7 @@ jobs:
env:
TRACE_API_KEY: ${{ secrets.DATA_DOG_API_KEY }}
if: "${{ env.TRACE_API_KEY != '' }}"
run: echo "::set-output name=defined::true"
run: echo "defined=true" >> $GITHUB_OUTPUT
build-performance-metrics:
name: Performance Metrics for Release Build
......
......@@ -24,7 +24,7 @@ jobs:
fetch-depth: 25
- name: Check non-docs only change
run: echo "::set-output name=DOCS_CHANGE::$(node scripts/run-for-change.js --not --type docs --exec echo 'nope')"
run: echo "DOCS_CHANGE=$(node scripts/run-for-change.js --not --type docs --exec echo 'nope')" >> $GITHUB_OUTPUT
id: docs-change
- name: Cache cargo registry
......@@ -43,7 +43,7 @@ jobs:
# We use week in the turbo cache key to keep the cache from infinitely growing
- id: get-week
run: echo ::set-output name=WEEK::$(date +%U)
run: echo "WEEK=$(date +%U)" >> $GITHUB_OUTPUT
- name: Turbo Cache
id: turbo-cache
......@@ -106,7 +106,7 @@ jobs:
fetch-depth: 25
- name: Check non-docs only change
run: echo "::set-output name=DOCS_CHANGE::$(node scripts/run-for-change.js --not --type docs --exec echo 'nope')"
run: echo "DOCS_CHANGE=$(node scripts/run-for-change.js --not --type docs --exec echo 'nope')" >> $GITHUB_OUTPUT
id: docs-change
- uses: actions/download-artifact@v3
......
......@@ -29,7 +29,7 @@ const run = (args: string[], options: execa.Options) =>
execa('node', [cli].concat(args), options)
describe('create next app', () => {
if (!process.env.NEXT_TEST_CNA && process.env.NEXT_TEST_JOB) {
if (!process.env.NEXT_TEST_CNA) {
it('should skip when env is not set', () => {})
return
}
......
......@@ -18,7 +18,7 @@ import {
import { useTempDir } from '../../../test/lib/use-temp-dir'
describe('create-next-app templates', () => {
if (!process.env.NEXT_TEST_CNA && process.env.NEXT_TEST_JOB) {
if (!process.env.NEXT_TEST_CNA) {
it('should skip when env is not set', () => {})
return
}
......@@ -168,7 +168,7 @@ describe('create-next-app templates', () => {
})
describe('create-next-app --experimental-app-dir', () => {
if (!process.env.NEXT_TEST_CNA && process.env.NEXT_TEST_JOB) {
if (!process.env.NEXT_TEST_CNA) {
it('should skip when env is not set', () => {})
return
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment