From a01b6c03821969a9ed9fb8fd0f1f97cd2daf8628 Mon Sep 17 00:00:00 2001 From: Fu Hanxi Date: Wed, 17 Feb 2021 00:31:08 +0800 Subject: [PATCH] ci: run all static code analysis jobs when the gitlab yaml changes --- .gitlab/ci/rules.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.gitlab/ci/rules.yml b/.gitlab/ci/rules.yml index 40cab1e4ef..7c0213ee5e 100644 --- a/.gitlab/ci/rules.yml +++ b/.gitlab/ci/rules.yml @@ -12,19 +12,14 @@ - "CONTRIBUTING.rst" .patterns-c-files: &patterns-c-files + - ".gitlab/ci/static-code-analysis.yml" - "**/*.{c,C}" - "**/*.{h,H}" - "components/**/Kconfig" - "components/**/CMakeList.txt" .patterns-python-files: &patterns-python-files - - "**/*.py" - -.patterns-static-code-analysis: &patterns-static-code-analysis - ".gitlab/ci/static-code-analysis.yml" - - "tools/ci/static-analysis-rules.yml" - - "**/*.{c,C}" - - "**/*.{h,H}" - "**/*.py" .patterns-example_test: &patterns-example_test @@ -203,7 +198,9 @@ .rules:patterns:static-code-analysis-preview: rules: - <<: *if-dev-push - changes: *patterns-static-code-analysis + changes: *patterns-c-files + - <<: *if-dev-push + changes: *patterns-python-files # DO NOT place comments or maintain any code from this line #