Skip to content

fix test prod

fix test prod #74

Workflow file for this run

name: build-initial
on:
push:
branches: ['ijjk/update-ci-workflow']
concurrency:
group: ${{ github.ref }}-build-initial
cancel-in-progress: true
env:
NAPI_CLI_VERSION: 2.14.7
TURBO_VERSION: 1.9.4
RUST_TOOLCHAIN: nightly-2023-03-09
PNPM_VERSION: 7.24.3
NODE_MAINTENANCE_VERSION: 16
NODE_LTS_VERSION: 18
TEST_CONCURRENCY: 6
# TODO: remove after testing
NEXT_TEST_CONTINUE_ON_ERROR: 'true'
jobs:
build-initial:
name: build-initial
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
testProd:
needs: ['build-initial', 'testDev']

Check failure on line 41 in .github/workflows/build_initial.yml

View workflow run for this annotation

GitHub Actions / build-initial

Invalid workflow file

The workflow is not valid. .github/workflows/build_initial.yml (Line: 41, Col: 30): Job 'testProd' depends on unknown job 'testDev'. .github/workflows/build_initial.yml (Line: 53, Col: 30): Job 'testIntegration' depends on job 'testProd' which creates a cycle in the dependency graph.
strategy:
fail-fast: false
matrix:
group: [1, 2, 3]
uses: vercel/next.js/.github/workflows/build_reusable.yml@ijjk/update-ci-workflow
with:
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:
needs: ['build-initial', 'testProd']
strategy:
fail-fast: false
matrix:
group: [1, 2, 3, 4, 5]
uses: vercel/next.js/.github/workflows/build_reusable.yml@ijjk/update-ci-workflow
with:
afterBuild: node run-tests.js --timings -g ${{ matrix.group }}/5 -c ${TEST_CONCURRENCY} --test-pattern '(integration)/.*\.test\.(js|jsx|ts|tsx)$'
secrets: inherit