File tree 1 file changed +34
-0
lines changed
1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -511,6 +511,40 @@ jobs:
511
511
jrm ./nextjs-test-result-junit.xml "test/test-junit-report/**/*.xml"
512
512
DD_ENV=ci datadog-ci junit upload --tags test.type:nextjs_deploy_e2e --service nextjs ./nextjs-test-result-junit.xml
513
513
514
+ manualTestDeployE2E :
515
+ name : E2E (manual deploy)
516
+ runs-on : ubuntu-latest
517
+ if : ${{ github.event_name == 'workflow_dispatch' }}
518
+ needs :
519
+ - build
520
+ - build-wasm
521
+ - build-native
522
+ env :
523
+ NEXT_TELEMETRY_DISABLED : 1
524
+ VERCEL_TEST_TOKEN : ${{ secrets.VERCEL_TEST_TOKEN }}
525
+ VERCEL_TEST_TEAM : vtest314-next-e2e-tests
526
+ DATADOG_API_KEY : ${{ secrets.DATA_DOG_API_KEY }}
527
+ steps :
528
+ - uses : actions/cache@v3
529
+ timeout-minutes : 5
530
+ id : restore-build
531
+ with :
532
+ path : ./*
533
+ key : ${{ github.sha }}-${{ github.run_number }}
534
+
535
+ - run : npm i -g vercel@latest
536
+
537
+ - uses : actions/download-artifact@v3
538
+ with :
539
+ name : next-swc-binaries
540
+ path : packages/next-swc/native
541
+
542
+ - run : RESET_VC_PROJECT=true node scripts/reset-vercel-project.mjs
543
+ name : Reset test project
544
+
545
+ - run : docker run --rm -v $(pwd):/work mcr.microsoft.com/playwright:v1.35.1-jammy /bin/bash -c "cd /work && NODE_VERSION=${{ env.NODE_LTS_VERSION }} ./scripts/setup-node.sh && corepack enable > /dev/null && DATADOG_TRACE_NEXTJS_TEST=TRUE DATADOG_API_KEY=${DATADOG_API_KEY} DD_ENV=ci VERCEL_TEST_TOKEN=${{ secrets.VERCEL_TEST_TOKEN }} VERCEL_TEST_TEAM=vtest314-next-e2e-tests NEXT_TEST_JOB=1 NEXT_TEST_MODE=deploy TEST_TIMINGS_TOKEN=${{ secrets.TEST_TIMINGS_TOKEN }} NEXT_TEST_CONTINUE_ON_ERROR=1 xvfb-run node run-tests.js --type e2e >> /proc/1/fd/1"
546
+ name : Run test/e2e (deploy)
547
+
514
548
releaseStats :
515
549
name : Release Stats
516
550
runs-on :
You can’t perform that action at this time.
0 commit comments