Update build and test workflow branch

parent a3ab5426
...@@ -34,14 +34,14 @@ env: ...@@ -34,14 +34,14 @@ env:
jobs: jobs:
build: build:
name: build name: build
uses: vercel/next.js/.github/workflows/build_reusable.yml@ijjk/update-ci-workflow uses: vercel/next.js/.github/workflows/build_reusable.yml@canary
secrets: inherit secrets: inherit
lint: lint:
name: lint name: lint
needs: ['build'] needs: ['build']
uses: vercel/next.js/.github/workflows/build_reusable.yml@ijjk/update-ci-workflow uses: vercel/next.js/.github/workflows/build_reusable.yml@canary
with: with:
afterBuild: pnpm lint-no-typescript && pnpm check-examples afterBuild: pnpm lint-no-typescript && pnpm check-examples
secrets: inherit secrets: inherit
...@@ -50,7 +50,7 @@ jobs: ...@@ -50,7 +50,7 @@ jobs:
name: types and precompiled name: types and precompiled
needs: ['build'] needs: ['build']
uses: vercel/next.js/.github/workflows/build_reusable.yml@ijjk/update-ci-workflow uses: vercel/next.js/.github/workflows/build_reusable.yml@canary
with: with:
afterBuild: pnpm types-and-precompiled afterBuild: pnpm types-and-precompiled
skipForDocsOnly: 'yes' skipForDocsOnly: 'yes'
...@@ -60,7 +60,7 @@ jobs: ...@@ -60,7 +60,7 @@ jobs:
name: test cargo unit name: test cargo unit
needs: ['build'] needs: ['build']
uses: vercel/next.js/.github/workflows/build_reusable.yml@ijjk/update-ci-workflow uses: vercel/next.js/.github/workflows/build_reusable.yml@canary
with: with:
skipForDocsOnly: 'yes' skipForDocsOnly: 'yes'
skipInstallBuild: 'yes' skipInstallBuild: 'yes'
...@@ -71,7 +71,7 @@ jobs: ...@@ -71,7 +71,7 @@ jobs:
name: rust check name: rust check
needs: ['build'] needs: ['build']
uses: vercel/next.js/.github/workflows/build_reusable.yml@ijjk/update-ci-workflow uses: vercel/next.js/.github/workflows/build_reusable.yml@canary
with: with:
skipForDocsOnly: 'yes' skipForDocsOnly: 'yes'
skipInstallBuild: 'yes' skipInstallBuild: 'yes'
...@@ -81,7 +81,7 @@ jobs: ...@@ -81,7 +81,7 @@ jobs:
test-turbopack-dev: test-turbopack-dev:
name: test turbopack dev name: test turbopack dev
needs: ['build'] needs: ['build']
uses: vercel/next.js/.github/workflows/build_reusable.yml@ijjk/update-ci-workflow uses: vercel/next.js/.github/workflows/build_reusable.yml@canary
with: with:
skipForDocsOnly: 'yes' skipForDocsOnly: 'yes'
afterBuild: RUST_BACKTRACE=0 NEXT_EXTERNAL_TESTS_FILTERS="$(pwd)/packages/next-swc/crates/next-dev-tests/tests-manifest.js" __INTERNAL_NEXT_DEV_TEST_TURBO_DEV=TRUE __INTERNAL_CUSTOM_TURBOPACK_BINDINGS="$(pwd)/packages/next-swc/native/next-swc.linux-x64-gnu.node" __INTERNAL_NEXT_DEV_TEST_TURBO_GLOB_MATCH="*" NEXT_E2E_TEST_TIMEOUT=240000 NEXT_TEST_MODE=dev node run-tests.js --type development --timings -c ${TEST_CONCURRENCY} afterBuild: RUST_BACKTRACE=0 NEXT_EXTERNAL_TESTS_FILTERS="$(pwd)/packages/next-swc/crates/next-dev-tests/tests-manifest.js" __INTERNAL_NEXT_DEV_TEST_TURBO_DEV=TRUE __INTERNAL_CUSTOM_TURBOPACK_BINDINGS="$(pwd)/packages/next-swc/native/next-swc.linux-x64-gnu.node" __INTERNAL_NEXT_DEV_TEST_TURBO_GLOB_MATCH="*" NEXT_E2E_TEST_TIMEOUT=240000 NEXT_TEST_MODE=dev node run-tests.js --type development --timings -c ${TEST_CONCURRENCY}
...@@ -91,7 +91,7 @@ jobs: ...@@ -91,7 +91,7 @@ jobs:
name: test next-swc wasm name: test next-swc wasm
needs: ['build'] needs: ['build']
uses: vercel/next.js/.github/workflows/build_reusable.yml@ijjk/update-ci-workflow uses: vercel/next.js/.github/workflows/build_reusable.yml@canary
with: with:
skipForDocsOnly: 'yes' skipForDocsOnly: 'yes'
afterBuild: rustup target add wasm32-unknown-unknown && curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh && node ./scripts/normalize-version-bump.js && turbo run build-wasm -- --target nodejs --features tracing/release_max_level_info && git checkout . && mv packages/next-swc/crates/wasm/pkg packages/next-swc/crates/wasm/pkg-nodejs && node ./scripts/setup-wasm.mjs && NEXT_TEST_MODE=start TEST_WASM=true node run-tests.js test/integration/production/test/index.test.js test/e2e/streaming-ssr/index.test.ts afterBuild: rustup target add wasm32-unknown-unknown && curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh && node ./scripts/normalize-version-bump.js && turbo run build-wasm -- --target nodejs --features tracing/release_max_level_info && git checkout . && mv packages/next-swc/crates/wasm/pkg packages/next-swc/crates/wasm/pkg-nodejs && node ./scripts/setup-wasm.mjs && NEXT_TEST_MODE=start TEST_WASM=true node run-tests.js test/integration/production/test/index.test.js test/e2e/streaming-ssr/index.test.ts
...@@ -105,7 +105,7 @@ jobs: ...@@ -105,7 +105,7 @@ jobs:
matrix: matrix:
group: [1, 2, 3] group: [1, 2, 3]
uses: vercel/next.js/.github/workflows/build_reusable.yml@ijjk/update-ci-workflow uses: vercel/next.js/.github/workflows/build_reusable.yml@canary
with: with:
skipForDocsOnly: 'yes' skipForDocsOnly: 'yes'
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)$' 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)$'
...@@ -119,7 +119,7 @@ jobs: ...@@ -119,7 +119,7 @@ jobs:
matrix: matrix:
group: [1, 2, 3] group: [1, 2, 3]
uses: vercel/next.js/.github/workflows/build_reusable.yml@ijjk/update-ci-workflow uses: vercel/next.js/.github/workflows/build_reusable.yml@canary
with: with:
skipForDocsOnly: 'yes' skipForDocsOnly: 'yes'
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)$' 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)$'
...@@ -133,7 +133,7 @@ jobs: ...@@ -133,7 +133,7 @@ jobs:
matrix: matrix:
group: [1, 2, 3, 4, 5, 6] group: [1, 2, 3, 4, 5, 6]
uses: vercel/next.js/.github/workflows/build_reusable.yml@ijjk/update-ci-workflow uses: vercel/next.js/.github/workflows/build_reusable.yml@canary
with: with:
skipForDocsOnly: 'yes' skipForDocsOnly: 'yes'
afterBuild: node run-tests.js --timings -g ${{ matrix.group }}/6 -c ${TEST_CONCURRENCY} --test-pattern '^(integration)/.*\.test\.(js|jsx|ts|tsx)$' afterBuild: node run-tests.js --timings -g ${{ matrix.group }}/6 -c ${TEST_CONCURRENCY} --test-pattern '^(integration)/.*\.test\.(js|jsx|ts|tsx)$'
...@@ -143,7 +143,7 @@ jobs: ...@@ -143,7 +143,7 @@ jobs:
name: test firefox and safari name: test firefox and safari
needs: ['build'] needs: ['build']
uses: vercel/next.js/.github/workflows/build_reusable.yml@ijjk/update-ci-workflow uses: vercel/next.js/.github/workflows/build_reusable.yml@canary
with: with:
skipForDocsOnly: 'yes' skipForDocsOnly: 'yes'
afterBuild: pnpm playwright install && BROWSER_NAME=firefox node run-tests.js test/integration/production/test/index.test.js && BROWSER_NAME=safari NEXT_TEST_MODE=start node run-tests.js -c 1 test/integration/production/test/index.test.js test/e2e/basepath.test.ts && BROWSER_NAME=safari DEVICE_NAME='iPhone XR' node run-tests.js -c 1 test/production/prerender-prefetch/index.test.ts afterBuild: pnpm playwright install && BROWSER_NAME=firefox node run-tests.js test/integration/production/test/index.test.js && BROWSER_NAME=safari NEXT_TEST_MODE=start node run-tests.js -c 1 test/integration/production/test/index.test.js test/e2e/basepath.test.ts && BROWSER_NAME=safari DEVICE_NAME='iPhone XR' node run-tests.js -c 1 test/production/prerender-prefetch/index.test.ts
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment