ci(gitlab): 在 Playwright 测试中添加 NVM 配置以使用特定 Node.js 版本
This commit is contained in:
parent
b86b14a9a4
commit
56ca150b6e
@ -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
|
||||
|
||||
Reference in New Issue
Block a user