Skip to content

Commit 309e1ff

Browse files
committed
Run tests only when code or tests have been changed.
1 parent 7e56a1e commit 309e1ff

12 files changed

+75
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@ on:
77
- master
88
- release/**
99
- sentry-sdk-2.0
10+
paths:
11+
- 'sentry_sdk/**' # Run when SDK code changes
12+
- 'tests/**' # Run when test files change
1013
pull_request:
14+
paths:
15+
- 'sentry_sdk/**' # Run when SDK code changes
16+
- 'tests/**' # Run when test files change
1117
# Cancel in progress workflows on pull_requests.
1218
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
1319
concurrency:

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,17 @@ on:
77
- master
88
- release/**
99
- sentry-sdk-2.0
10+
paths:
11+
- 'sentry_sdk/**' # Run when SDK code changes
12+
- 'tests/**' # Run when test files change
1013
# XXX: We are using `pull_request_target` instead of `pull_request` because we want
1114
# this to run on forks with access to the secrets necessary to run the test suite.
1215
# Prefer to use `pull_request` when possible.
1316
pull_request_target:
1417
types: [labeled, opened, reopened, synchronize]
18+
paths:
19+
- 'sentry_sdk/**' # Run when SDK code changes
20+
- 'tests/**' # Run when test files change
1521
# Cancel in progress workflows on pull_requests.
1622
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
1723
concurrency:

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@ on:
77
- master
88
- release/**
99
- sentry-sdk-2.0
10+
paths:
11+
- 'sentry_sdk/**' # Run when SDK code changes
12+
- 'tests/**' # Run when test files change
1013
pull_request:
14+
paths:
15+
- 'sentry_sdk/**' # Run when SDK code changes
16+
- 'tests/**' # Run when test files change
1117
# Cancel in progress workflows on pull_requests.
1218
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
1319
concurrency:

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@ on:
77
- master
88
- release/**
99
- sentry-sdk-2.0
10+
paths:
11+
- 'sentry_sdk/**' # Run when SDK code changes
12+
- 'tests/**' # Run when test files change
1013
pull_request:
14+
paths:
15+
- 'sentry_sdk/**' # Run when SDK code changes
16+
- 'tests/**' # Run when test files change
1117
# Cancel in progress workflows on pull_requests.
1218
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
1319
concurrency:

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@ on:
77
- master
88
- release/**
99
- sentry-sdk-2.0
10+
paths:
11+
- 'sentry_sdk/**' # Run when SDK code changes
12+
- 'tests/**' # Run when test files change
1013
pull_request:
14+
paths:
15+
- 'sentry_sdk/**' # Run when SDK code changes
16+
- 'tests/**' # Run when test files change
1117
# Cancel in progress workflows on pull_requests.
1218
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
1319
concurrency:

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@ on:
77
- master
88
- release/**
99
- sentry-sdk-2.0
10+
paths:
11+
- 'sentry_sdk/**' # Run when SDK code changes
12+
- 'tests/**' # Run when test files change
1013
pull_request:
14+
paths:
15+
- 'sentry_sdk/**' # Run when SDK code changes
16+
- 'tests/**' # Run when test files change
1117
# Cancel in progress workflows on pull_requests.
1218
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
1319
concurrency:

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@ on:
77
- master
88
- release/**
99
- sentry-sdk-2.0
10+
paths:
11+
- 'sentry_sdk/**' # Run when SDK code changes
12+
- 'tests/**' # Run when test files change
1013
pull_request:
14+
paths:
15+
- 'sentry_sdk/**' # Run when SDK code changes
16+
- 'tests/**' # Run when test files change
1117
# Cancel in progress workflows on pull_requests.
1218
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
1319
concurrency:

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@ on:
77
- master
88
- release/**
99
- sentry-sdk-2.0
10+
paths:
11+
- 'sentry_sdk/**' # Run when SDK code changes
12+
- 'tests/**' # Run when test files change
1013
pull_request:
14+
paths:
15+
- 'sentry_sdk/**' # Run when SDK code changes
16+
- 'tests/**' # Run when test files change
1117
# Cancel in progress workflows on pull_requests.
1218
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
1319
concurrency:

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@ on:
77
- master
88
- release/**
99
- sentry-sdk-2.0
10+
paths:
11+
- 'sentry_sdk/**' # Run when SDK code changes
12+
- 'tests/**' # Run when test files change
1013
pull_request:
14+
paths:
15+
- 'sentry_sdk/**' # Run when SDK code changes
16+
- 'tests/**' # Run when test files change
1117
# Cancel in progress workflows on pull_requests.
1218
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
1319
concurrency:

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@ on:
77
- master
88
- release/**
99
- sentry-sdk-2.0
10+
paths:
11+
- 'sentry_sdk/**' # Run when SDK code changes
12+
- 'tests/**' # Run when test files change
1013
pull_request:
14+
paths:
15+
- 'sentry_sdk/**' # Run when SDK code changes
16+
- 'tests/**' # Run when test files change
1117
# Cancel in progress workflows on pull_requests.
1218
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
1319
concurrency:

0 commit comments

Comments
 (0)