Skip to content

Commit 017f8fb

Browse files
committed
Run checks only when code or tests where changed
1 parent 309e1ff commit 017f8fb

12 files changed

+36
-0
lines changed

.github/workflows/test-integrations-ai.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,9 @@ jobs:
176176
# Always run this, even if a dependent job failed
177177
if: always()
178178
runs-on: ubuntu-20.04
179+
paths:
180+
- 'sentry_sdk/**' # Run when SDK code changes
181+
- 'tests/**' # Run when test files change
179182
steps:
180183
- name: Check for failures
181184
if: contains(needs.test-ai-pinned.result, 'failure') || contains(needs.test-ai-pinned.result, 'skipped')

.github/workflows/test-integrations-aws.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ jobs:
123123
# Always run this, even if a dependent job failed
124124
if: always()
125125
runs-on: ubuntu-20.04
126+
paths:
127+
- 'sentry_sdk/**' # Run when SDK code changes
128+
- 'tests/**' # Run when test files change
126129
steps:
127130
- name: Check for failures
128131
if: contains(needs.test-aws-pinned.result, 'failure') || contains(needs.test-aws-pinned.result, 'skipped')

.github/workflows/test-integrations-cloud.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,9 @@ jobs:
168168
# Always run this, even if a dependent job failed
169169
if: always()
170170
runs-on: ubuntu-20.04
171+
paths:
172+
- 'sentry_sdk/**' # Run when SDK code changes
173+
- 'tests/**' # Run when test files change
171174
steps:
172175
- name: Check for failures
173176
if: contains(needs.test-cloud-pinned.result, 'failure') || contains(needs.test-cloud-pinned.result, 'skipped')

.github/workflows/test-integrations-common.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ jobs:
8888
# Always run this, even if a dependent job failed
8989
if: always()
9090
runs-on: ubuntu-20.04
91+
paths:
92+
- 'sentry_sdk/**' # Run when SDK code changes
93+
- 'tests/**' # Run when test files change
9194
steps:
9295
- name: Check for failures
9396
if: contains(needs.test-common-pinned.result, 'failure') || contains(needs.test-common-pinned.result, 'skipped')

.github/workflows/test-integrations-dbs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,9 @@ jobs:
222222
# Always run this, even if a dependent job failed
223223
if: always()
224224
runs-on: ubuntu-20.04
225+
paths:
226+
- 'sentry_sdk/**' # Run when SDK code changes
227+
- 'tests/**' # Run when test files change
225228
steps:
226229
- name: Check for failures
227230
if: contains(needs.test-dbs-pinned.result, 'failure') || contains(needs.test-dbs-pinned.result, 'skipped')

.github/workflows/test-integrations-graphql.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,9 @@ jobs:
168168
# Always run this, even if a dependent job failed
169169
if: always()
170170
runs-on: ubuntu-20.04
171+
paths:
172+
- 'sentry_sdk/**' # Run when SDK code changes
173+
- 'tests/**' # Run when test files change
171174
steps:
172175
- name: Check for failures
173176
if: contains(needs.test-graphql-pinned.result, 'failure') || contains(needs.test-graphql-pinned.result, 'skipped')

.github/workflows/test-integrations-misc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,9 @@ jobs:
192192
# Always run this, even if a dependent job failed
193193
if: always()
194194
runs-on: ubuntu-20.04
195+
paths:
196+
- 'sentry_sdk/**' # Run when SDK code changes
197+
- 'tests/**' # Run when test files change
195198
steps:
196199
- name: Check for failures
197200
if: contains(needs.test-misc-pinned.result, 'failure') || contains(needs.test-misc-pinned.result, 'skipped')

.github/workflows/test-integrations-network.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,9 @@ jobs:
168168
# Always run this, even if a dependent job failed
169169
if: always()
170170
runs-on: ubuntu-20.04
171+
paths:
172+
- 'sentry_sdk/**' # Run when SDK code changes
173+
- 'tests/**' # Run when test files change
171174
steps:
172175
- name: Check for failures
173176
if: contains(needs.test-network-pinned.result, 'failure') || contains(needs.test-network-pinned.result, 'skipped')

.github/workflows/test-integrations-tasks.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,9 @@ jobs:
204204
# Always run this, even if a dependent job failed
205205
if: always()
206206
runs-on: ubuntu-20.04
207+
paths:
208+
- 'sentry_sdk/**' # Run when SDK code changes
209+
- 'tests/**' # Run when test files change
207210
steps:
208211
- name: Check for failures
209212
if: contains(needs.test-tasks-pinned.result, 'failure') || contains(needs.test-tasks-pinned.result, 'skipped')

.github/workflows/test-integrations-web-1.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,9 @@ jobs:
204204
# Always run this, even if a dependent job failed
205205
if: always()
206206
runs-on: ubuntu-20.04
207+
paths:
208+
- 'sentry_sdk/**' # Run when SDK code changes
209+
- 'tests/**' # Run when test files change
207210
steps:
208211
- name: Check for failures
209212
if: contains(needs.test-web_1-pinned.result, 'failure') || contains(needs.test-web_1-pinned.result, 'skipped')

0 commit comments

Comments
 (0)