From fad6c4685085c496a923e15e5ad402e84f49cf4a Mon Sep 17 00:00:00 2001 From: Administrator Date: Thu, 13 Mar 2025 14:18:50 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0.gitlab-ci.yml=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d238036..02637bf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,11 +1,20 @@ playwright_tests: stage: test image: mcr.microsoft.com/playwright:v1.43.0-jammy - script: + cache: + key: $CI_COMMIT_REF_SLUG + paths: + - node_modules/ + before_script: - npm config set registry https://registry.npmmirror.com + script: - npm install - - npx playwright test touch/boss_cashier.spec.ts --project '慧来客touch(管理员身份) - Desktop Chrome' + - npx playwright test + artifacts: + paths: + - test-results/ + expire_in: 1 week tags: - - test # 这里要和注册 Runner 时的 `tag-list` 一致 + - test only: - - main + - main \ No newline at end of file