Skip to content
代码片段 群组 项目
未验证 提交 34c0263b 编辑于 作者: Rémy Coutable's avatar Rémy Coutable
浏览文件

Move frontend test to new test-frontend stage


Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
上级 6b02c833
No related branches found
No related tags found
无相关合并请求
......@@ -5,6 +5,7 @@ stages:
- build-images
- fixtures
- lint
- test-frontend
- test
- post-test
- review
......
......@@ -92,7 +92,6 @@ update-assets-compile-production-cache:
- .update-cache-base
- .assets-compile-cache-push
- .shared:rules:update-cache
stage: prepare
artifacts: {} # This job's purpose is only to update the cache.
update-assets-compile-test-cache:
......@@ -101,7 +100,6 @@ update-assets-compile-test-cache:
- .update-cache-base
- .assets-compile-cache-push
- .shared:rules:update-cache
stage: prepare
artifacts: {} # This job's purpose is only to update the cache.
update-storybook-yarn-cache:
......@@ -240,7 +238,7 @@ graphql-schema-dump:
before_script:
- !reference [.default-before_script, before_script]
- yarn_install_script
stage: test
stage: test-frontend
jest-build-cache:
extends:
......@@ -440,7 +438,7 @@ webpack-dev-server:
- .yarn-cache
- .repo-from-artifacts
- .frontend:rules:default-frontend-jobs
stage: test
stage: test-frontend
variables:
WEBPACK_MEMORY_TEST: "true"
WEBPACK_VENDOR_DLL: "true"
......@@ -454,32 +452,12 @@ webpack-dev-server:
paths:
- webpack-dev-server.json
bundle-size-review:
extends:
- .default-retry
- .default-utils-before_script
- .assets-compile-cache
- .repo-from-artifacts
- .frontend:rules:bundle-size-review
image: ${REGISTRY_HOST}/${REGISTRY_GROUP}/gitlab-build-images:danger
stage: test
needs:
- !reference [.repo-from-artifacts, needs]
script:
- yarn_install_script
- scripts/bundle_size_review
artifacts:
when: always
name: bundle-size-review
expire_in: 31d
paths:
- bundle-size-review/
compile-storybook:
extends:
- .frontend-test-base
- .storybook-yarn-cache
- .frontend:rules:compile-storybook
stage: pages
needs:
- !reference [.repo-from-artifacts, needs]
- !reference [.with-fixtures-needs, needs]
......
......@@ -2,6 +2,7 @@ include:
- component: ${CI_SERVER_FQDN}/gitlab-org/components/danger-review/danger-review@1.4.1
inputs:
job_image: "${DEFAULT_CI_IMAGE}"
job_stage: "preflight"
# By default DANGER_DANGERFILE_PREFIX is not defined but allows JiHu to
# use a different prefix.
# See https://jihulab.com/gitlab-cn/gitlab/-/blob/main-jh/jh/.gitlab-ci.yml
......
......@@ -115,3 +115,21 @@ pipeline-tier-3:
extends:
- .pipeline-tier-base
- .preflight:rules:pipeline-tier-3
bundle-size-review:
extends:
- .default-retry
- .default-utils-before_script
- .assets-compile-cache
- .repo-from-artifacts
- .frontend:rules:bundle-size-review
stage: preflight
script:
- yarn_install_script
- scripts/bundle_size_review
artifacts:
when: always
name: bundle-size-review
expire_in: 31d
paths:
- bundle-size-review/
......@@ -102,6 +102,7 @@ qa:metadata-lint:
extends:
- .qa-job-base
- .qa:rules:metadata-lint
stage: lint
variables:
QA_EXPORT_TEST_METRICS: "false"
# Disable warnings in browserslist which can break on backports
......
......@@ -91,7 +91,7 @@ verify-tests-yml:
extends:
- .setup:rules:verify-tests-yml
image: ${GITLAB_DEPENDENCY_PROXY_ADDRESS}ruby:${RUBY_VERSION}-alpine3.20
stage: test
stage: preflight
needs: []
script:
- source scripts/utils.sh
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册