diff --git a/.github/workflows/turbopack-nextjs-build-integration-tests.yml b/.github/workflows/turbopack-nextjs-build-integration-tests.yml index e58560e51491d..740ba1b5f70e6 100644 --- a/.github/workflows/turbopack-nextjs-build-integration-tests.yml +++ b/.github/workflows/turbopack-nextjs-build-integration-tests.yml @@ -97,50 +97,50 @@ jobs: test/turbopack-test-junit-report # TODO: Implement specifically running production tests only for Turbopack. Enabling this now enables running `test/integration` with development mode too. - # test-integration-production: - # name: Next.js production integration test (Integration) - # needs: [setup_nextjs] - # runs-on: - # - 'self-hosted' - # - 'linux' - # - 'x64' - # - 'metal' - - # timeout-minutes: 180 - # strategy: - # fail-fast: false - # matrix: - # group: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] - - # steps: - # - uses: actions/cache/restore@v3 - # id: restore-build - # with: - # path: ./* - # key: ${{ inputs.version }}-${{ github.sha }} - # fail-on-cache-miss: true - - # - name: Enable corepack and install yarn - # run: | - # corepack enable - # corepack prepare --activate yarn@1.22.19 - - # - name: Setup playwright - # run: | - # pnpm playwright install - - # - name: Run test/integration - # run: | - # TURBOPACK=1 TURBOPACK_BUILD=1 node run-tests.js -g ${{ matrix.group }}/12 -c ${TEST_CONCURRENCY} --type integration - # continue-on-error: true - - # - name: Upload test report artifacts - # uses: actions/upload-artifact@v4 - # with: - # name: test-reports-build-integration-${{ matrix.group }} - # if-no-files-found: 'error' - # path: | - # test/turbopack-test-junit-report + test-integration-production: + name: Next.js production integration test (Integration) + needs: [setup_nextjs] + runs-on: + - 'self-hosted' + - 'linux' + - 'x64' + - 'metal' + + timeout-minutes: 180 + strategy: + fail-fast: false + matrix: + group: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] + + steps: + - uses: actions/cache/restore@v3 + id: restore-build + with: + path: ./* + key: ${{ inputs.version }}-${{ github.sha }} + fail-on-cache-miss: true + + - name: Enable corepack and install yarn + run: | + corepack enable + corepack prepare --activate yarn@1.22.19 + + - name: Setup playwright + run: | + pnpm playwright install + + - name: Run test/integration + run: | + TURBOPACK=1 TURBOPACK_BUILD=1 node run-tests.js -g ${{ matrix.group }}/12 -c ${TEST_CONCURRENCY} --type integration + continue-on-error: true + + - name: Upload test report artifacts + uses: actions/upload-artifact@v4 + with: + name: test-reports-build-integration-${{ matrix.group }} + if-no-files-found: 'error' + path: | + test/turbopack-test-junit-report # Collect integration test results from execute_tests, # Store it as github artifact for next step to consume.