This repository has been archived on 2025-04-22. You can view files and clone it, but cannot push or open issues or pull requests.
hlk_autotest/.gitlab-ci.yml
LingandRX 3f45ac233f ci: 修改GitLab CI配置
- 移除了playwright_tests阶段的artifacts配置中的一个路径
- 保留了test-results/目录,删除了playwright-report/目录
- 保留了artifacts的expire_in设置为1周
2025-03-17 23:40:13 +08:00

28 lines
765 B
YAML

playwright_tests:
stage: test
image: mcr.microsoft.com/playwright:v1.51.0-noble
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 --grep "挂单" --project '慧来客touch(管理员身份) - Desktop Chrome'
after_script:
- |
if [ "$CI_JOB_STATUS" == "success" ]; then
echo "Tests passed! Sending success message..."
else
echo "Tests failed! Sending failure message..."
node scripts/send-message.js "Some tests failed!"
fi
artifacts:
paths:
- playwright-report/
expire_in: 1 week
tags:
- test
only:
- main