diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 578dbf96..6a72ad6a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -77,3 +77,5 @@ jobs: - name: Run tests if: ${{ matrix.os != 'windows-latest' }} run: pnpm run test + env: + VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} diff --git a/tests-examples/tests-tool/.test-vercel-edge.test.ts b/tests-examples/tests-tool/.test-vercel-edge.test.ts index 8bee8dc3..e7dcb33f 100644 --- a/tests-examples/tests-tool/.test-vercel-edge.test.ts +++ b/tests-examples/tests-tool/.test-vercel-edge.test.ts @@ -1,6 +1,8 @@ import { testRun } from "./.testRun"; -testRun("pnpm run dev:vercel", 23009, { +const token = process.env.VERCEL_TOKEN ? ` --token=${process.env.VERCEL_TOKEN}` : ""; + +testRun(`pnpm run dev:vercel${token}`, 23009, { serverIsReadyMessage: "Local:", portCommand: "--listen", prefix: "/api/web", diff --git a/tests-examples/tests-tool/.test-vercel-node.test.ts b/tests-examples/tests-tool/.test-vercel-node.test.ts index 3d7b193b..9b79b860 100644 --- a/tests-examples/tests-tool/.test-vercel-node.test.ts +++ b/tests-examples/tests-tool/.test-vercel-node.test.ts @@ -1,6 +1,8 @@ import { testRun } from "./.testRun"; -testRun("pnpm run dev:vercel", 23008, { +const token = process.env.VERCEL_TOKEN ? ` --token=${process.env.VERCEL_TOKEN}` : ""; + +testRun(`pnpm run dev:vercel${token}`, 23008, { serverIsReadyMessage: "Local:", portCommand: "--listen", prefix: "/api/node",