From afe574d2caefb258cf77c78cdf8e4f554b01e50f Mon Sep 17 00:00:00 2001 From: Administrator Date: Thu, 13 Mar 2025 11:59:38 +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 | 30 ++---------------------------- 1 file changed, 2 insertions(+), 28 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index eec4bf8..e2553cc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,37 +1,11 @@ -stages: - - test - - report - playwright_tests: stage: test - image: mcr.microsoft.com/playwright:v1.43.0-jammy # 使用官方 Playwright 镜像 - before_script: - - npm config set registry https://registry.npmmirror.com # 使用淘宝镜像 + image: mcr.microsoft.com/playwright:v1.43.0-jammy script: - npm install - npx playwright install - npx playwright test - artifacts: - paths: - - test-results/ - expire_in: 1 week tags: - - test - only: - - main - -send_report: - stage: report - image: alpine:latest - script: - - apk add --no-cache curl - - | - if [ -d test-results ]; then - echo "Test Successful." - else - echo "No test results found." - fi - tags: - - test + - docker # 这里要和注册 Runner 时的 `tag-list` 一致 only: - main