From 48566d00b1071a9c8ad52976b0b46a154aed53c3 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Fri, 29 Mar 2024 14:41:55 +0000 Subject: [PATCH] ci: don't run rustfmt on every core change Only keep the two parts we want: disabling the job in the nightly pipeline, and running the job if the CI itself is modified. Part-of: --- .gitlab-ci/test-source-dep.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci/test-source-dep.yml b/.gitlab-ci/test-source-dep.yml index c30e8b03df0..06f21acf5e5 100644 --- a/.gitlab-ci/test-source-dep.yml +++ b/.gitlab-ci/test-source-dep.yml @@ -227,7 +227,10 @@ .lint-rustfmt-rules: rules: - !reference [.never-post-merge-rules, rules] - - !reference [.core-rules, rules] + - !reference [.no_scheduled_pipelines-rules, rules] + - changes: + - .gitlab-ci.yml + - .gitlab-ci/**/* # in merge pipeline, formatting checks are not allowed to fail - if: $GITLAB_USER_LOGIN == "marge-bot" && $CI_PIPELINE_SOURCE == "merge_request_event" changes: &rust_file_list