diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2ac6327..c727635 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 @@ -32,4 +36,4 @@ send_report: tags: - test # 指定使用标签为 test 的 Runner only: - - main \ No newline at end of file + - main