Update ci.yaml to use pnpm instead of pnpx for Vercel commands
All checks were successful
CI / build-and-deploy (push) Successful in 4m33s

This commit is contained in:
严浩
2024-09-26 17:56:57 +08:00
parent 3db8a15c97
commit e50a16a583
4 changed files with 26 additions and 39 deletions

View File

@ -12,7 +12,7 @@ import { defineConfig, devices } from '@playwright/test';
* See https://playwright.dev/docs/test-configuration.
*/
export default defineConfig({
testDir: './tests',
testDir: './tests/e2e',
/* Run tests in files in parallel */
fullyParallel: true,
/* Fail the build on CI if you accidentally left test.only in the source code. */
@ -26,7 +26,7 @@ export default defineConfig({
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
baseURL: process.env.BASE_URL || 'https://vue-ts-example.oo1.dev',
baseURL: process.env.BASE_URL || 'https://vue-ts-example.surge.sh',
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',