ci(gitlab): 在 CI 配置中使用 sudo 安装 Playwright 依赖

This commit is contained in:
LingandRX 2025-03-13 19:37:20 +08:00
parent 439779dd56
commit 91e31e348e

View File

@ -12,7 +12,7 @@ playwright_tests:
- npm config set registry https://registry.npmmirror.com # 使用淘宝镜像
script:
- npm install
- npx playwright install-deps
- sudo npx playwright install-deps
- npx playwright install
- npx playwright test
artifacts: