From 56ca150b6e19ae15c7109741ba0f57f574ba7cbd Mon Sep 17 00:00:00 2001 From: LingandRX Date: Thu, 13 Mar 2025 19:30:46 +0800 Subject: [PATCH] =?UTF-8?q?ci(gitlab):=20=E5=9C=A8=20Playwright=20?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E4=B8=AD=E6=B7=BB=E5=8A=A0=20NVM=20=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E4=BB=A5=E4=BD=BF=E7=94=A8=E7=89=B9=E5=AE=9A=20Node.j?= =?UTF-8?q?s=20=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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