ci(gitlab): 在 Playwright 测试中添加 NVM 配置以使用特定 Node.js 版本

This commit is contained in:
LingandRX 2025-03-13 19:30:46 +08:00
parent b86b14a9a4
commit 56ca150b6e

View File

@ -5,6 +5,10 @@ stages:
playwright_tests:
stage: test
image: mcr.microsoft.com/playwright:focal
before_script:
- export NVM_DIR="$HOME/.nvm"
- . "$NVM_DIR/nvm.sh"
- nvm use 20.17.0
script:
- npm install
- npx playwright install