Commit bbfcc2f
feat: Skip tests for doc-only changes (#7306)
This change improves the CI process by skipping test runs for pull
requests that only contain changes to documentation files.
The logic is implemented in `AffectedProjectFinder.java`. It filters out
files with common documentation extensions (`.md`, `.txt`, `.html`) and
files in the `docs/` directory from the set of changed files.
If all changed files in a pull request are documentation files, the set
of affected projects will be empty, and no tests will be run. This
avoids unnecessary test runs and saves CI resources.
---------
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>1 parent f6feb92 commit bbfcc2f
File tree
1 file changed
+11
-0
lines changed- plugins/src/main/java/com/google/firebase/gradle/plugins/ci
1 file changed
+11
-0
lines changedLines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| 43 | + | |
| 44 | + | |
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
| |||
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
| 59 | + | |
56 | 60 | | |
57 | 61 | | |
58 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
59 | 70 | | |
60 | 71 | | |
61 | 72 | | |
| |||
0 commit comments