更新.gitlab-ci.yml文件

This commit is contained in:
Administrator 2025-03-13 14:18:50 +00:00
parent 86311180c2
commit fad6c46850

View File

@ -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