From 247fa9ecf7897c0d6ed88d5fd125e1cedd3eb9ca Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Sun, 14 May 2023 20:06:49 -0700 Subject: [PATCH] fix test prod --- .github/workflows/build_initial.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build_initial.yml b/.github/workflows/build_initial.yml index 6dda002d6fa8..d82b48b827c2 100644 --- a/.github/workflows/build_initial.yml +++ b/.github/workflows/build_initial.yml @@ -25,17 +25,17 @@ jobs: uses: vercel/next.js/.github/workflows/build_reusable.yml@ijjk/update-ci-workflow secrets: inherit - testDev: - strategy: - fail-fast: false - matrix: - group: [1, 2, 3] - needs: ['build-initial'] - - uses: vercel/next.js/.github/workflows/build_reusable.yml@ijjk/update-ci-workflow - with: - afterBuild: NEXT_TEST_MODE=dev node run-tests.js --timings -g ${{ matrix.group }}/5 -c ${TEST_CONCURRENCY} --test-pattern '(development|e2e|unit)/.*\.test\.(js|jsx|ts|tsx)$' - secrets: inherit + # testDev: + # strategy: + # fail-fast: false + # matrix: + # group: [1, 2, 3] + # needs: ['build-initial'] + + # uses: vercel/next.js/.github/workflows/build_reusable.yml@ijjk/update-ci-workflow + # with: + # afterBuild: NEXT_TEST_MODE=dev node run-tests.js --timings -g ${{ matrix.group }}/5 -c ${TEST_CONCURRENCY} --test-pattern '(development|e2e|unit)/.*\.test\.(js|jsx|ts|tsx)$' + # secrets: inherit testProd: needs: ['build-initial', 'testDev'] @@ -46,7 +46,7 @@ jobs: uses: vercel/next.js/.github/workflows/build_reusable.yml@ijjk/update-ci-workflow with: - afterBuild: NEXT_TEST_MODE=dev node run-tests.js --timings -g ${{ matrix.group }}/5 -c ${TEST_CONCURRENCY} --test-pattern '(production|e2e)/.*\.test\.(js|jsx|ts|tsx)$' + afterBuild: NEXT_TEST_MODE=start node run-tests.js --timings -g ${{ matrix.group }}/5 -c ${TEST_CONCURRENCY} --test-pattern '(production|e2e)/.*\.test\.(js|jsx|ts|tsx)$' secrets: inherit testIntegration: @@ -58,5 +58,5 @@ jobs: uses: vercel/next.js/.github/workflows/build_reusable.yml@ijjk/update-ci-workflow with: - afterBuild: NEXT_TEST_MODE=dev node run-tests.js --timings -g ${{ matrix.group }}/5 -c ${TEST_CONCURRENCY} --test-pattern '(integration)/.*\.test\.(js|jsx|ts|tsx)$' + afterBuild: node run-tests.js --timings -g ${{ matrix.group }}/5 -c ${TEST_CONCURRENCY} --test-pattern '(integration)/.*\.test\.(js|jsx|ts|tsx)$' secrets: inherit