summaryrefslogtreecommitdiff
path: root/.gitlab/ci/rules.gitlab-ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab/ci/rules.gitlab-ci.yml')
-rw-r--r--.gitlab/ci/rules.gitlab-ci.yml30
1 files changed, 29 insertions, 1 deletions
diff --git a/.gitlab/ci/rules.gitlab-ci.yml b/.gitlab/ci/rules.gitlab-ci.yml
index 159defc83c3..5e8cdf0daaf 100644
--- a/.gitlab/ci/rules.gitlab-ci.yml
+++ b/.gitlab/ci/rules.gitlab-ci.yml
@@ -155,9 +155,15 @@
- "{,ee/}{,spec/}lib/{,ee/}gitlab/database{,_spec}.rb"
- "{,ee/}{,spec/}lib/{,ee/}gitlab/background_migration/**/*"
- "{,ee/}{,spec/}lib/{,ee/}gitlab/background_migration{,_spec}.rb"
+ - "{,ee/}spec/support/helpers/database/**/*"
- "config/prometheus/common_metrics.yml" # Used by Gitlab::DatabaseImporters::CommonMetrics::Importer
- "{,ee/}app/models/project_statistics.rb" # Used to calculate sizes in migration specs
+.db-library-patterns: &db-library-patterns
+ - "{,ee/}{,spec/}lib/{,ee/}gitlab/database/**/*"
+ - "{,ee/}{,spec/}lib/{,ee/}gitlab/database{,_spec}.rb"
+ - "{,ee/}spec/support/helpers/database/**/*"
+
.backstage-patterns: &backstage-patterns
- "Dangerfile"
- "danger/**/*"
@@ -349,7 +355,11 @@
changes: *docs-patterns
when: on_success
-.docs:rules:graphql-reference-verify:
+##################
+# GraphQL rules #
+##################
+
+.graphql:rules:graphql-verify:
rules:
- <<: *if-not-ee
when: never
@@ -507,6 +517,12 @@
- <<: *if-merge-request
changes: *db-patterns
+.rails:rules:ee-and-foss-mr-with-migration:
+ rules:
+ - <<: *if-merge-request
+ changes: *db-patterns
+ - <<: *if-merge-request-title-run-all-rspec
+
.rails:rules:ee-and-foss-unit:
rules:
- changes: *backend-patterns
@@ -765,6 +781,11 @@
- <<: *if-merge-request-title-as-if-foss
changes: *code-backstage-patterns
+.rails:rules:ee-and-foss-db-library-code:
+ rules:
+ - changes: *db-library-patterns
+ - <<: *if-merge-request-title-run-all-rspec
+
.rails:rules:ee-mr-and-master-only:
rules:
- <<: *if-not-ee
@@ -825,6 +846,13 @@
- <<: *if-merge-request
changes: *code-backstage-patterns
+.rails:rules:deprecations:
+ rules:
+ - <<: *if-not-ee
+ when: never
+ - <<: *if-master-schedule-nightly
+ - <<: *if-merge-request-title-run-all-rspec
+
.rails:rules:rspec-coverage:
rules:
- <<: *if-not-ee