File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
.ci/pipeline-library/src/test Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -97,4 +97,17 @@ class PrChangesTest extends KibanaBasePipelineTest {
9797
9898 assertFalse (prChanges. areChangesSkippable())
9999 }
100+
101+ @Test
102+ void ' areChangesSkippable() with plugin readme changes' () {
103+ props([
104+ githubPrs : [
105+ getChanges : { [
106+ [filename : ' src/plugins/foo/README.asciidoc' ],
107+ ] },
108+ ],
109+ ])
110+
111+ assertFalse (prChanges. areChangesSkippable())
112+ }
100113}
Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ def getNotSkippablePaths() {
2222 return [
2323 // this file is auto-generated and changes to it need to be validated with CI
2424 / ^docs\/ developer\/ architecture\/ code-exploration.asciidoc$/ ,
25+ // don't skip CI on prs with changes to plugin readme files (?i) is for case-insensitive matching
26+ / (?i)\/ plugins\/ [^\/ ]+\/ readme\. (md|asciidoc)$/ ,
2527 ]
2628}
2729
You can’t perform that action at this time.
0 commit comments