Skip to content

Commit

Permalink
fix test prod
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed May 15, 2023
1 parent 87fad97 commit 247fa9e
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/build_initial.yml
Expand Up @@ -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']
Expand All @@ -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:
Expand All @@ -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

0 comments on commit 247fa9e

Please sign in to comment.