Skip to content

fix test prod

fix test prod #76

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 }}/3 -c ${TEST_CONCURRENCY} --test-pattern '^(development|e2e|unit)/.*\.test\.(js|jsx|ts|tsx)$'
secrets: inherit
testProd:
needs: ['build-initial', 'testDev']
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 }}/3 -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
testsPass:
name: thank you, next

Check failure on line 65 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: 65, Col: 5): Required property is missing: runs-on
needs: ['build-initial', 'testIntegration']
steps:
- run: echo 'success'