Skip to content

Commit 9392427

Browse files
chore(ci): Skip Spring Boot tests when updating Android modules (#5453)
* chore(ci): Skip Spring Boot matrix jobs on Android-only pull requests (JAVA-510) Prior to this commit, Android-only PRs were silently triggering 14 unrelated Spring Boot matrix jobs (up to 45 min each). This commit fixes that by adding missing PR filters for all Android directories, letting us skip Spring Boot CI entirely when nothing Spring-related changes. Note: Every push to main still runs the full matrix. --------- Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 184b991 commit 9392427

3 files changed

Lines changed: 12 additions & 6 deletions

File tree

‎.github/workflows/spring-boot-2-matrix.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ on:
44
push:
55
branches:
66
- main
7-
paths-ignore:
8-
- '**/sentry-android/**'
97
pull_request:
8+
paths-ignore:
9+
- '*android*/**'
10+
- 'sentry-compose/**'
11+
- 'sentry-samples/sentry-samples-android/**'
1012

1113
concurrency:
1214
group: ${{ github.workflow }}-${{ github.ref }}

‎.github/workflows/spring-boot-3-matrix.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ on:
44
push:
55
branches:
66
- main
7-
paths-ignore:
8-
- '**/sentry-android/**'
97
pull_request:
8+
paths-ignore:
9+
- '*android*/**'
10+
- 'sentry-compose/**'
11+
- 'sentry-samples/sentry-samples-android/**'
1012

1113
concurrency:
1214
group: ${{ github.workflow }}-${{ github.ref }}

‎.github/workflows/spring-boot-4-matrix.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ on:
44
push:
55
branches:
66
- main
7-
paths-ignore:
8-
- '**/sentry-android/**'
97
pull_request:
8+
paths-ignore:
9+
- '*android*/**'
10+
- 'sentry-compose/**'
11+
- 'sentry-samples/sentry-samples-android/**'
1012

1113
concurrency:
1214
group: ${{ github.workflow }}-${{ github.ref }}

0 commit comments

Comments
 (0)