/
githubmirror
/
next.js
Обзор
Документация
Войти
/
githubmirror
/
next.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
.github/workflows/test_examples.yml
57 строк
2 KB
Sebastian "Sebbie" Silbermann
[ci] Make automatic native binding install opt-in (#95114)
24 июн 2026, 23:39
Не верифицирован
24 июн 2026, 23:39
69acc33
Код
Авторство
О чём код?
# This file duplicates bunch of things from build_test_deploy on: workflow_dispatch: inputs: is_dispatched: description: 'Leave this option enabled' required: true default: true type: boolean schedule: - cron: '0 */4 * * *' name: Test examples jobs: testExamples: # Don't execute using cron on forks if: (github.repository == 'vercel/next.js') || (inputs.is_dispatched == true) name: Test Examples runs-on: ubuntu-latest timeout-minutes: 120 env: NEXT_TELEMETRY_DISABLED: 1 # This job runs `pnpm build` (JS only) and runs the example apps, so it # needs the published next-swc binary. Opt back into the download since CI # skips it by default (see scripts/install-native.mjs). NEXT_SKIP_NATIVE_POSTINSTALL: 0 strategy: fail-fast: false matrix: node: [20, 22] steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: fetch-depth: 25 persist-credentials: false # https://github.com/actions/virtual-environments/issues/1187 - name: tune linux network run: sudo ethtool -K eth0 tx off rx off - name: Setup node uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: node-version-file: .node-version check-latest: true package-manager-cache: false - name: Setup corepack run: | npm i -g corepack@0.31 corepack enable - run: pnpm install - run: pnpm build - run: docker run --rm -v $(pwd):/work mcr.microsoft.com/playwright:v1.35.1-focal /bin/bash -c "cd /work && curl -s https://install-node.vercel.app/v${{ matrix.node }} | FORCE=1 bash && node -v && corepack enable > /dev/null && NEXT_TEST_JOB=1 NEXT_TEST_MODE=start xvfb-run node run-tests.js --type examples >> /proc/1/fd/1" name: Run test/examples