Skip to content
代码片段 群组 项目
提交 a260bd20 编辑于 作者: Lin Jen-Shin's avatar Lin Jen-Shin
浏览文件

Fix detecting jest job for FOSS pipeline

上级 c59ee5be
No related branches found
No related tags found
无相关合并请求
......@@ -15,8 +15,6 @@ class GenerateAsIfFossEnv
eslint
generate-apollo-graphql-schema
graphql-schema-dump
jest
jest-integration
qa:internal
qa:selectors
static-analysis
......@@ -76,7 +74,13 @@ def detect_rspec(job)
end
def detect_other_jobs(job)
other_jobs << job.name if FOSS_JOBS.member?(job.name)
if FOSS_JOBS.member?(job.name)
other_jobs << job.name
else
jest_type = job.name[%r{^(jest(?:-\w+)?)(?: \d+/\d+)?$}, 1]
other_jobs << jest_type if jest_type
end
end
def rspec_variables
......
......@@ -39,7 +39,7 @@
'eslint',
'generate-apollo-graphql-schema',
'graphql-schema-dump',
'jest',
'jest 1/5',
'jest-integration',
'qa:internal',
'qa:selectors',
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册