Skip to content

Commit 134e4bf

Browse files
committed
f
1 parent 2399fba commit 134e4bf

File tree

1 file changed

+90
-5
lines changed

1 file changed

+90
-5
lines changed

.github/workflows/build_and_test.yml

Lines changed: 90 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,34 @@ jobs:
755755

756756
uses: ./.github/workflows/build_reusable.yml
757757
with:
758-
# Should this be using turbopack? a variation?
758+
afterBuild: |
759+
export NEXT_TEST_MODE=dev
760+
export IS_WEBPACK_TEST=1
761+
762+
node run-tests.js \
763+
test/e2e/app-dir/app/index.test.ts \
764+
test/e2e/app-dir/app-edge/app-edge.test.ts \
765+
test/e2e/app-dir/proxy-runtime-nodejs/proxy-runtime-nodejs.test.ts \
766+
test/development/app-dir/segment-explorer/segment-explorer.test.ts
767+
stepName: 'test-dev-windows'
768+
runs_on_labels: '["windows","self-hosted","x64"]'
769+
buildNativeTarget: 'x86_64-pc-windows-msvc'
770+
secrets: inherit
771+
772+
test-turbopack-dev-windows:
773+
name: test turbopack dev windows
774+
needs:
775+
[
776+
'optimize-ci',
777+
'changes',
778+
'build-native-windows',
779+
'build-native',
780+
'build-next',
781+
]
782+
if: ${{ needs.optimize-ci.outputs.skip == 'false' && needs.changes.outputs.docs-only == 'false' }}
783+
784+
uses: ./.github/workflows/build_reusable.yml
785+
with:
759786
afterBuild: |
760787
export NEXT_TEST_MODE=dev
761788
export IS_TURBOPACK_TEST=1
@@ -767,7 +794,7 @@ jobs:
767794
test/e2e/app-dir/proxy-runtime-nodejs/proxy-runtime-nodejs.test.ts \
768795
test/e2e/externals-transitive/externals-transitive.test.ts \
769796
test/development/app-dir/segment-explorer/segment-explorer.test.ts
770-
stepName: 'test-dev-windows'
797+
stepName: 'test-turbopack-dev-windows'
771798
runs_on_labels: '["windows","self-hosted","x64"]'
772799
buildNativeTarget: 'x86_64-pc-windows-msvc'
773800
secrets: inherit
@@ -801,6 +828,36 @@ jobs:
801828
buildNativeTarget: 'x86_64-pc-windows-msvc'
802829
secrets: inherit
803830

831+
test-turbopack-integration-windows:
832+
name: test turbopack integration windows
833+
needs:
834+
[
835+
'optimize-ci',
836+
'changes',
837+
'build-native-windows',
838+
'build-native',
839+
'build-next',
840+
]
841+
if: ${{ needs.optimize-ci.outputs.skip == 'false' && needs.changes.outputs.docs-only == 'false' }}
842+
843+
uses: ./.github/workflows/build_reusable.yml
844+
with:
845+
nodeVersion: 20.9.0
846+
afterBuild: |
847+
export IS_TURBOPACK_TEST=1
848+
849+
node run-tests.js \
850+
--concurrency 4 \
851+
test/production/pages-dir/production/test/index.test.ts \
852+
test/integration/css-client-nav/test/index.test.ts \
853+
test/integration/rewrites-has-condition/test/index.test.ts \
854+
test/integration/create-next-app/index.test.ts \
855+
test/integration/create-next-app/package-manager/pnpm.test.ts
856+
stepName: 'test-turbopack-integration-windows'
857+
runs_on_labels: '["windows","self-hosted","x64"]'
858+
buildNativeTarget: 'x86_64-pc-windows-msvc'
859+
secrets: inherit
860+
804861
test-prod-windows:
805862
name: test prod windows
806863
needs:
@@ -813,6 +870,35 @@ jobs:
813870
]
814871
if: ${{ needs.optimize-ci.outputs.skip == 'false' && needs.changes.outputs.docs-only == 'false' }}
815872

873+
uses: ./.github/workflows/build_reusable.yml
874+
with:
875+
afterBuild: |
876+
export NEXT_TEST_MODE=start
877+
export IS_WEBPACK_TEST=1
878+
879+
node run-tests.js --type production \
880+
test/e2e/app-dir/app/index.test.ts \
881+
test/e2e/app-dir/app-edge/app-edge.test.ts \
882+
test/e2e/app-dir/metadata-edge/index.test.ts \
883+
test/e2e/app-dir/non-root-project-monorepo/non-root-project-monorepo.test.ts \
884+
test/e2e/app-dir/proxy-runtime-nodejs/proxy-runtime-nodejs.test.ts
885+
stepName: 'test-prod-windows'
886+
runs_on_labels: '["windows","self-hosted","x64"]'
887+
buildNativeTarget: 'x86_64-pc-windows-msvc'
888+
secrets: inherit
889+
890+
test-turbopack-prod-windows:
891+
name: test turbopack prod windows
892+
needs:
893+
[
894+
'optimize-ci',
895+
'changes',
896+
'build-native-windows',
897+
'build-native',
898+
'build-next',
899+
]
900+
if: ${{ needs.optimize-ci.outputs.skip == 'false' && needs.changes.outputs.docs-only == 'false' }}
901+
816902
uses: ./.github/workflows/build_reusable.yml
817903
with:
818904
afterBuild: |
@@ -825,9 +911,8 @@ jobs:
825911
test/e2e/app-dir/app-edge/app-edge.test.ts \
826912
test/e2e/app-dir/metadata-edge/index.test.ts \
827913
test/e2e/app-dir/non-root-project-monorepo/non-root-project-monorepo.test.ts \
828-
test/e2e/app-dir/proxy-runtime-nodejs/proxy-runtime-nodejs.test.ts \
829-
test/e2e/externals-transitive/externals-transitive.test.ts
830-
stepName: 'test-prod-windows'
914+
test/e2e/app-dir/proxy-runtime-nodejs/proxy-runtime-nodejs.test.ts
915+
stepName: 'test-turbopack-prod-windows'
831916
runs_on_labels: '["windows","self-hosted","x64"]'
832917
buildNativeTarget: 'x86_64-pc-windows-msvc'
833918
secrets: inherit

0 commit comments

Comments
 (0)