Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
test
autotest-playwright-web-spd
Commits
cb16cb6c
Commit
cb16cb6c
authored
Sep 14, 2026
by
liguangyu06
Browse files
Disable GitLab auto pipelines; tests run on Jenkins.
The shared shell runner has no npm, so typecheck fails on every push.
parent
f54ac950
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
cb16cb6c
# GitLab CI:默认只做类型检查。冒烟需配置 CI/CD Variables:TEST_USER、TEST_PASS,可选 BASE_URL。
# 执行与定时跑在 Jenkins(Jenkinsfile + docs/jenkins.md)。
# 完整回归走 Jenkins(见 docs/jenkins.md),不要把 nightly/full 绑在每次 MR 上。
# 当前 GitLab Runner 是 shell,机器上没有 npm,image: node:20 不会生效,
# 推送时跑 typecheck 会报 npm: command not found。因此默认不创建流水线。
workflow
:
rules
:
-
when
:
never
stages
:
stages
:
-
check
-
check
-
test
-
test
# 以后若有 Docker Runner,删掉上面的 workflow.rules,即可恢复 typecheck / 手动冒烟。
default
:
default
:
image
:
node:20
image
:
node:20
variables
:
npm_config_cache
:
"
$CI_PROJECT_DIR/.npm"
PLAYWRIGHT_BROWSERS_PATH
:
"
$CI_PROJECT_DIR/.playwright-browsers"
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD
:
"
1"
CI
:
"
true"
PW_RETRIES
:
"
0"
cache
:
key
:
files
:
-
package-lock.json
paths
:
-
.npm/
typecheck
:
typecheck
:
stage
:
check
stage
:
check
script
:
script
:
-
npm ci --ignore-scripts
-
npm ci --ignore-scripts
-
npm run typecheck
-
npm run typecheck
rules
:
rules
:
-
if
:
$CI_PIPELINE_SOURCE == "merge_request_event"
-
when
:
never
-
if
:
$CI_COMMIT_BRANCH
smoke
:
smoke
:
stage
:
test
stage
:
test
image
:
mcr.microsoft.com/playwright:v1.55.0-jammy
image
:
mcr.microsoft.com/playwright:v1.55.0-jammy
timeout
:
2 hours
timeout
:
2 hours
needs
:
[
"
typecheck"
]
script
:
script
:
-
npm ci
-
npm ci
-
node scripts/run-ci.mjs --suite="${SUITE:-smoke}"
-
node scripts/run-ci.mjs --suite="${SUITE:-smoke}"
artifacts
:
when
:
always
expire_in
:
7 days
paths
:
-
reports/latest/
rules
:
rules
:
-
if
:
$CI_PIPELINE_SOURCE == "web"
when
:
manual
-
if
:
$CI_PIPELINE_SOURCE == "schedule"
-
when
:
never
-
when
:
never
variables
:
variables
:
SUITE
:
smoke
SUITE
:
smoke
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment