Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
93 changes: 92 additions & 1 deletion .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,6 @@ jobs:

uses: ./.github/workflows/build_reusable.yml
with:
# Should this be using turbopack? a variation?
afterBuild: |
export NEXT_TEST_MODE=dev
export IS_WEBPACK_TEST=1
Expand All @@ -770,6 +769,35 @@ jobs:
buildNativeTarget: 'x86_64-pc-windows-msvc'
secrets: inherit

test-turbopack-dev-windows:
name: test turbopack dev windows
needs:
[
'optimize-ci',
'changes',
'build-native-windows',
'build-native',
'build-next',
]
if: ${{ needs.optimize-ci.outputs.skip == 'false' && needs.changes.outputs.docs-only == 'false' }}

uses: ./.github/workflows/build_reusable.yml
with:
afterBuild: |
export NEXT_TEST_MODE=dev
export IS_TURBOPACK_TEST=1
export TURBOPACK_DEV=1

node run-tests.js \
test/e2e/app-dir/app/index.test.ts \
test/e2e/app-dir/app-edge/app-edge.test.ts \
test/e2e/app-dir/proxy-runtime-nodejs/proxy-runtime-nodejs.test.ts \
test/development/app-dir/segment-explorer/segment-explorer.test.ts
stepName: 'test-turbopack-dev-windows'
runs_on_labels: '["windows","self-hosted","x64"]'
buildNativeTarget: 'x86_64-pc-windows-msvc'
secrets: inherit

test-integration-windows:
name: test integration windows
needs:
Expand Down Expand Up @@ -799,6 +827,36 @@ jobs:
buildNativeTarget: 'x86_64-pc-windows-msvc'
secrets: inherit

test-turbopack-integration-windows:
name: test turbopack integration windows
needs:
[
'optimize-ci',
'changes',
'build-native-windows',
'build-native',
'build-next',
]
if: ${{ needs.optimize-ci.outputs.skip == 'false' && needs.changes.outputs.docs-only == 'false' }}

uses: ./.github/workflows/build_reusable.yml
with:
nodeVersion: 20.9.0
afterBuild: |
export IS_TURBOPACK_TEST=1

node run-tests.js \
--concurrency 4 \
test/production/pages-dir/production/test/index.test.ts \
test/integration/css-client-nav/test/index.test.ts \
test/integration/rewrites-has-condition/test/index.test.ts \
test/integration/create-next-app/index.test.ts \
test/integration/create-next-app/package-manager/pnpm.test.ts
stepName: 'test-turbopack-integration-windows'
runs_on_labels: '["windows","self-hosted","x64"]'
buildNativeTarget: 'x86_64-pc-windows-msvc'
secrets: inherit

test-prod-windows:
name: test prod windows
needs:
Expand Down Expand Up @@ -828,6 +886,36 @@ jobs:
buildNativeTarget: 'x86_64-pc-windows-msvc'
secrets: inherit

test-turbopack-prod-windows:
name: test turbopack prod windows
needs:
[
'optimize-ci',
'changes',
'build-native-windows',
'build-native',
'build-next',
]
if: ${{ needs.optimize-ci.outputs.skip == 'false' && needs.changes.outputs.docs-only == 'false' }}

uses: ./.github/workflows/build_reusable.yml
with:
afterBuild: |
export NEXT_TEST_MODE=start
export IS_TURBOPACK_TEST=1
export TURBOPACK_BUILD=1

node run-tests.js --type production \
test/e2e/app-dir/app/index.test.ts \
test/e2e/app-dir/app-edge/app-edge.test.ts \
test/e2e/app-dir/metadata-edge/index.test.ts \
test/e2e/app-dir/non-root-project-monorepo/non-root-project-monorepo.test.ts \
test/e2e/app-dir/proxy-runtime-nodejs/proxy-runtime-nodejs.test.ts
stepName: 'test-turbopack-prod-windows'
runs_on_labels: '["windows","self-hosted","x64"]'
buildNativeTarget: 'x86_64-pc-windows-msvc'
secrets: inherit

test-prod:
name: test prod
needs: ['optimize-ci', 'changes', 'build-native', 'build-next']
Expand Down Expand Up @@ -1027,8 +1115,11 @@ jobs:
'test-turbopack-production-integration',
'test-unit-windows',
'test-dev-windows',
'test-turbopack-dev-windows',
'test-integration-windows',
'test-turbopack-integration-windows',
'test-prod-windows',
'test-turbopack-prod-windows',
]

if: always()
Expand Down
Loading