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