Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
experience_builder
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
experience_builder
Commits
4ec1a479
Commit
4ec1a479
authored
10 months ago
by
Wim Leers
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3460778
by Wim Leers: CI: do not run PHP-only jobs if an MR only changes the UI
parent
a1410b6f
No related branches found
No related tags found
1 merge request
!92
Resolve #3460778 "Fix mr and schedule"
Pipeline
#224406
passed
10 months ago
Stage: build
Stage: validate
Stage: test
Stage: publish
Stage: deploy
Changes
2
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+9
-10
9 additions, 10 deletions
.gitlab-ci.yml
config/schema/experience_builder.schema.yml
+1
-0
1 addition, 0 deletions
config/schema/experience_builder.schema.yml
with
10 additions
and
10 deletions
.gitlab-ci.yml
+
9
−
10
View file @
4ec1a479
...
...
@@ -88,7 +88,6 @@ cspell:
# @todo Remove when https://www.drupal.org/project/gitlab_templates/issues/3452183 lands.
.php-files-change-rule
:
&php-files-change-rule
-
changes
:
-
"
*.{php,module,inc,install,theme,profile}"
-
"
**/*.{php,module,inc,install,theme,profile}"
when
:
on_success
...
...
@@ -121,12 +120,12 @@ cspell:
# @todo Remove when https://www.drupal.org/project/gitlab_templates/issues/3452183 lands.
composer-lint
:
rules
:
-
*manual-rule
-
*is-push-rule
-
*php-files-change-rule
-
changes
:
-
composer.json
when
:
on_success
-
*manual-rule
# This module wants to strictly comply with Drupal core's coding standards.
phpcs
:
...
...
@@ -138,9 +137,9 @@ phpcs:
allow_failure
:
false
# @todo Remove when https://www.drupal.org/project/gitlab_templates/issues/3452183 lands.
rules
:
-
*manual-rule
-
*is-push-rule
-
*php-files-change-rule
-
*manual-rule
stylelint
:
# Match Drupal 11's rules, not 10.3's.
...
...
@@ -149,25 +148,25 @@ stylelint:
allow_failure
:
false
# @todo Remove when https://www.drupal.org/project/gitlab_templates/issues/3452183 lands.
rules
:
-
*manual-rule
-
*is-push-rule
-
*css-files-change-rule
-
*manual-rule
# This module wants to strictly comply with PHPStan.
.phpstan-base
:
allow_failure
:
false
# @todo Remove when https://www.drupal.org/project/gitlab_templates/issues/3452183 lands.
rules
:
-
*manual-rule
-
*is-push-rule
-
*php-files-change-rule
-
*manual-rule
# Sadly, changes to `.phpstan-base` do not affect derivatives that themselves override `rules`… 😬
phpstan (next major)
:
# @todo Remove when https://www.drupal.org/project/gitlab_templates/issues/3452183 lands.
rules
:
-
*manual-rule
-
*is-push-rule
-
*php-files-change-rule
-
*manual-rule
# We're choosing to not use `OPT_IN_TEST_NEXT_MINOR` but instead force the default CI build job to use Drupal 10.3.
composer
:
...
...
@@ -197,22 +196,22 @@ phpunit:
name
:
$_CONFIG_DOCKERHUB_ROOT/php-$PHP_VERSION-ubuntu-apache:$_TARGET_PHP_IMAGE_TAG
# @todo Remove when https://www.drupal.org/project/gitlab_templates/issues/3452183 lands.
rules
:
-
*manual-rule
-
*is-push-rule
-
*php-files-change-rule
-
*module-metadata-files-change-rule
-
*module-config-files-change-rule
-
*SDC-files-change-rule
-
*manual-rule
# Sadly, changes to `phpunit` do not affect derivatives that themselves override `rules`… 😬
phpunit (next major)
:
# @todo Remove when https://www.drupal.org/project/gitlab_templates/issues/3452183 lands.
rules
:
-
*manual-rule
-
*is-push-rule
-
*php-files-change-rule
-
*module-metadata-files-change-rule
-
*module-config-files-change-rule
-
*SDC-files-change-rule
-
*manual-rule
eslint
:
# This module wants to strictly comply with eslint.
...
...
@@ -222,13 +221,13 @@ eslint:
-
rm -rf ui
# @todo Remove when https://www.drupal.org/project/gitlab_templates/issues/3452183 lands.
rules
:
-
*manual-rule
-
*is-push-rule
-
if
:
$CI_PIPELINE_SOURCE == "merge_request_event"
changes
:
-
.prettier*
-
"
**/*.js"
-
"
**/*.yml"
-
*manual-rule
UI
:
stage
:
build
...
...
@@ -254,7 +253,6 @@ UI eslint:
-
UI
# @todo Refine when https://www.drupal.org/project/gitlab_templates/issues/3452183 lands.
rules
:
-
*manual-rule
-
*is-push-rule
-
if
:
$CI_PIPELINE_SOURCE == "merge_request_event"
changes
:
...
...
@@ -263,6 +261,7 @@ UI eslint:
-
ui/**/*.tsx
-
ui/tsconfig.json
-
ui/tsconfig.node.json
-
*manual-rule
script
:
-
cd ui
-
npm ci
...
...
This diff is collapsed.
Click to expand it.
config/schema/experience_builder.schema.yml
+
1
−
0
View file @
4ec1a479
# Trigger CI.
experience_builder.component.*
:
type
:
config_entity
constraints
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment