Skip to content
GitLab
菜单
为什么选择 GitLab
定价
联系销售
探索
为什么选择 GitLab
定价
联系销售
探索
登录
获取免费试用
主导航
搜索或转到…
项目
GitLab
管理
动态
成员
标记
计划
议题
议题看板
里程碑
迭代
需求
代码
合并请求
仓库
分支
提交
标签
仓库图
比较修订版本
代码片段
锁定的文件
构建
流水线
作业
流水线计划
测试用例
产物
部署
发布
Package registry
容器镜像库
模型注册表
运维
环境
Terraform 模块
监控
事件
服务台
分析
价值流分析
贡献者分析
CI/CD 分析
仓库分析
代码评审分析
议题分析
洞察
模型实验
效能分析
帮助
帮助
支持
GitLab 文档
比较 GitLab 各版本
社区论坛
为极狐GitLab 提交贡献
提交反馈
隐私声明
快捷键
?
新增功能
4
代码片段
群组
项目
显示更多面包屑
gitlab-cn
GitLab
提交
49836060
未验证
提交
49836060
编辑于
1 week ago
作者:
Jennifer Li
提交者:
GitLab
1 week ago
浏览文件
操作
下载
补丁
差异文件
Run jest jobs with custom exit code
上级
f5eeb7ed
No related branches found
No related tags found
2 合并请求
!3031
Merge per-main-jh to main-jh by luzhiyuan
,
!3030
Merge per-main-jh to main-jh
变更
1
隐藏空白变更内容
行内
左右并排
显示
1 个更改的文件
.gitlab/ci/frontend.gitlab-ci.yml
+55
-12
55 个添加, 12 个删除
.gitlab/ci/frontend.gitlab-ci.yml
有
55 个添加
和
12 个删除
.gitlab/ci/frontend.gitlab-ci.yml
+
55
−
12
浏览文件 @
49836060
...
@@ -334,7 +334,7 @@ jest:
...
@@ -334,7 +334,7 @@ jest:
junit
:
junit_jest.xml
junit
:
junit_jest.xml
parallel
:
11
parallel
:
11
script
:
script
:
-
run_timed_command scripts/frontend/jest_ci.js
-
run_with_custom_exit_code
run_timed_command scripts/frontend/jest_ci.js
jest-with-fixtures
:
jest-with-fixtures
:
extends
:
extends
:
...
@@ -348,7 +348,7 @@ jest-with-fixtures:
...
@@ -348,7 +348,7 @@ jest-with-fixtures:
-
!reference
[
.with-fixtures-needs
,
needs
]
-
!reference
[
.with-fixtures-needs
,
needs
]
parallel
:
2
parallel
:
2
script
:
script
:
-
run_timed_command "scripts/frontend/jest_ci.js --fixtures"
-
run_with_custom_exit_code
run_timed_command "scripts/frontend/jest_ci.js --fixtures"
jest vue3
:
jest vue3
:
extends
:
extends
:
...
@@ -388,7 +388,7 @@ jest vue3 mr:
...
@@ -388,7 +388,7 @@ jest vue3 mr:
-
junit_jest.xml
-
junit_jest.xml
parallel
:
6
parallel
:
6
script
:
script
:
-
run_timed_command "scripts/frontend/jest_ci.js --vue3"
-
run_with_custom_exit_code
run_timed_command "scripts/frontend/jest_ci.js --vue3"
allow_failure
:
false
allow_failure
:
false
jest-with-fixtures vue3 mr
:
jest-with-fixtures vue3 mr
:
...
@@ -408,7 +408,7 @@ jest-with-fixtures vue3 mr:
...
@@ -408,7 +408,7 @@ jest-with-fixtures vue3 mr:
-
junit_jest.xml
-
junit_jest.xml
parallel
:
1
parallel
:
1
script
:
script
:
-
run_timed_command "scripts/frontend/jest_ci.js --vue3 --fixtures"
-
run_with_custom_exit_code
run_timed_command "scripts/frontend/jest_ci.js --vue3 --fixtures"
jest predictive
:
jest predictive
:
extends
:
extends
:
...
@@ -418,7 +418,15 @@ jest predictive:
...
@@ -418,7 +418,15 @@ jest predictive:
-
!reference
[
jest
,
needs
]
-
!reference
[
jest
,
needs
]
-
"
detect-tests"
-
"
detect-tests"
script
:
script
:
-
if [[ -s "$RSPEC_CHANGED_FILES_PATH" ]] || [[ -s "$RSPEC_MATCHING_JS_FILES_PATH" ]]; then run_timed_command "scripts/frontend/jest_ci.js --predictive"; fi
-
|
function jest_predictive() {
if [[ -s "$RSPEC_CHANGED_FILES_PATH" ]] || [[ -s "$RSPEC_MATCHING_JS_FILES_PATH" ]]; then
run_timed_command "scripts/frontend/jest_ci.js --predictive"
fi
}
run_with_custom_exit_code jest_predictive
parallel
:
4
parallel
:
4
jest-with-fixtures predictive
:
jest-with-fixtures predictive
:
...
@@ -429,7 +437,14 @@ jest-with-fixtures predictive:
...
@@ -429,7 +437,14 @@ jest-with-fixtures predictive:
-
!reference
[
jest-with-fixtures
,
needs
]
-
!reference
[
jest-with-fixtures
,
needs
]
-
"
detect-tests"
-
"
detect-tests"
script
:
script
:
-
if [[ -s "$RSPEC_CHANGED_FILES_PATH" ]] || [[ -s "$RSPEC_MATCHING_JS_FILES_PATH" ]]; then run_timed_command "scripts/frontend/jest_ci.js --predictive --fixtures"; fi
-
|
function jest_with_fixtures_predictive() {
if [[ -s "$RSPEC_CHANGED_FILES_PATH" ]] || [[ -s "$RSPEC_MATCHING_JS_FILES_PATH" ]]; then
run_timed_command "scripts/frontend/jest_ci.js --predictive --fixtures"
fi
}
run_with_custom_exit_code jest_with_fixtures_predictive
jest vue3 predictive
:
jest vue3 predictive
:
extends
:
extends
:
...
@@ -439,7 +454,14 @@ jest vue3 predictive:
...
@@ -439,7 +454,14 @@ jest vue3 predictive:
-
!reference
[
jest vue3 mr
,
needs
]
-
!reference
[
jest vue3 mr
,
needs
]
-
"
detect-tests"
-
"
detect-tests"
script
:
script
:
-
if [[ -s "$RSPEC_CHANGED_FILES_PATH" ]] || [[ -s "$RSPEC_MATCHING_JS_FILES_PATH" ]]; then run_timed_command "scripts/frontend/jest_ci.js --vue3 --predictive"; fi
-
|
function jest_vue3_predictive() {
if [[ -s "$RSPEC_CHANGED_FILES_PATH" ]] || [[ -s "$RSPEC_MATCHING_JS_FILES_PATH" ]]; then
run_timed_command "scripts/frontend/jest_ci.js --vue3 --predictive"
fi
}
run_with_custom_exit_code jest_vue3_predictive
jest-with-fixtures vue3 predictive
:
jest-with-fixtures vue3 predictive
:
extends
:
extends
:
...
@@ -449,7 +471,14 @@ jest-with-fixtures vue3 predictive:
...
@@ -449,7 +471,14 @@ jest-with-fixtures vue3 predictive:
-
!reference
[
jest-with-fixtures vue3 mr
,
needs
]
-
!reference
[
jest-with-fixtures vue3 mr
,
needs
]
-
"
detect-tests"
-
"
detect-tests"
script
:
script
:
-
if [[ -s "$RSPEC_CHANGED_FILES_PATH" ]] || [[ -s "$RSPEC_MATCHING_JS_FILES_PATH" ]]; then run_timed_command "scripts/frontend/jest_ci.js --vue3 --predictive --fixtures"; fi
-
|
function jest_with_fixtures_vue3_predictive() {
if [[ -s "$RSPEC_CHANGED_FILES_PATH" ]] || [[ -s "$RSPEC_MATCHING_JS_FILES_PATH" ]]; then
run_timed_command "scripts/frontend/jest_ci.js --vue3 --predictive --fixtures";
fi
}
run_with_custom_exit_code jest_with_fixtures_vue3_predictive
allow_failure
:
false
allow_failure
:
false
jest vue3 check quarantined predictive
:
jest vue3 check quarantined predictive
:
...
@@ -460,7 +489,14 @@ jest vue3 check quarantined predictive:
...
@@ -460,7 +489,14 @@ jest vue3 check quarantined predictive:
-
!reference
[
jest vue3 mr
,
needs
]
-
!reference
[
jest vue3 mr
,
needs
]
-
"
detect-tests"
-
"
detect-tests"
script
:
script
:
-
if [[ -s "$RSPEC_CHANGED_FILES_PATH" ]] || [[ -s "$RSPEC_MATCHING_JS_FILES_PATH" ]]; then run_timed_command "./scripts/frontend/check_jest_vue3_quarantine.js"; fi
-
|
function jest_vue_check_quarantined_predictive() {
if [[ -s "$RSPEC_CHANGED_FILES_PATH" ]] || [[ -s "$RSPEC_MATCHING_JS_FILES_PATH" ]]; then
run_timed_command "./scripts/frontend/check_jest_vue3_quarantine.js"
fi
}
run_with_custom_exit_code jest_vue_check_quarantined_predictive
parallel
:
4
parallel
:
4
artifacts
:
artifacts
:
name
:
quarantined_tests_output
name
:
quarantined_tests_output
...
@@ -483,7 +519,14 @@ jest vue3 check quarantined:
...
@@ -483,7 +519,14 @@ jest vue3 check quarantined:
-
.frontend:rules:jest-vue3-check-quarantined
-
.frontend:rules:jest-vue3-check-quarantined
parallel
:
4
parallel
:
4
script
:
script
:
-
if [[ -s "$RSPEC_CHANGED_FILES_PATH" ]] || [[ -s "$RSPEC_MATCHING_JS_FILES_PATH" ]]; then run_timed_command "./scripts/frontend/check_jest_vue3_quarantine.js --all"; fi
-
|
function jest_vue3_check_quarantined() {
if [[ -s "$RSPEC_CHANGED_FILES_PATH" ]] || [[ -s "$RSPEC_MATCHING_JS_FILES_PATH" ]]; then
run_timed_command "./scripts/frontend/check_jest_vue3_quarantine.js --all"
fi
}
run_with_custom_exit_code jest_vue3_check_quarantined
jest-with-fixtures vue3 check quarantined
:
jest-with-fixtures vue3 check quarantined
:
extends
:
extends
:
...
@@ -498,7 +541,7 @@ jest-integration:
...
@@ -498,7 +541,7 @@ jest-integration:
-
.repo-from-artifacts
-
.repo-from-artifacts
-
.frontend:rules:jest-integration
-
.frontend:rules:jest-integration
script
:
script
:
-
run_timed_command "yarn jest:integration --ci"
-
run_with_custom_exit_code
run_timed_command "yarn jest:integration --ci"
needs
:
needs
:
# it's ok to wait for the repo artifact as we're waiting for the fixtures (which wait for the repo artifact) anyway
# it's ok to wait for the repo artifact as we're waiting for the fixtures (which wait for the repo artifact) anyway
-
!reference
[
.repo-from-artifacts
,
needs
]
-
!reference
[
.repo-from-artifacts
,
needs
]
...
@@ -550,7 +593,7 @@ jest-linters:
...
@@ -550,7 +593,7 @@ jest-linters:
-
.frontend:rules:jest-linters
-
.frontend:rules:jest-linters
needs
:
[]
needs
:
[]
script
:
script
:
-
run_timed_command "yarn jest:eslint --ci"
-
run_with_custom_exit_code
run_timed_command "yarn jest:eslint --ci"
coverage-frontend
:
coverage-frontend
:
extends
:
extends
:
...
...
此差异已折叠。
点击以展开。
预览
0%
加载中
请重试
或
添加新附件
.
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
保存评论
取消
想要评论请
注册
或
登录