更新.gitlab-ci.yml文件
This commit is contained in:
parent
86311180c2
commit
fad6c46850
@ -1,11 +1,20 @@
|
|||||||
playwright_tests:
|
playwright_tests:
|
||||||
stage: test
|
stage: test
|
||||||
image: mcr.microsoft.com/playwright:v1.43.0-jammy
|
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
|
- npm config set registry https://registry.npmmirror.com
|
||||||
|
script:
|
||||||
- npm install
|
- 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:
|
tags:
|
||||||
- test # 这里要和注册 Runner 时的 `tag-list` 一致
|
- test
|
||||||
only:
|
only:
|
||||||
- main
|
- main
|
||||||
Reference in New Issue
Block a user