Skip to content

Commit 9dffb92

Browse files
authored
build: Selectively run ember tests (#3571)
Only run tests if we change `@sentry/ember` or it's dependent packages (browser, core, tracing, hub, minimal, types, utils).
1 parent 7b51f15 commit 9dffb92

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,17 @@ jobs:
193193
with:
194194
path: ${{ env.CACHED_BUILD_PATHS }}
195195
key: ${{ env.BUILD_CACHE_KEY }}
196+
- name: Check changed files
197+
id: changed-files-specific
198+
uses: tj-actions/[email protected]
199+
with:
200+
files: .*packages\/(ember|browser|core|tracing|hub|minimal|types|utils)($|/.*)
201+
# Only run ember tests if the files above have changed
196202
- name: Run Ember tests
203+
if: steps.changed-files-specific.outputs.any_changed == 'true'
197204
run: yarn test --scope=@sentry/ember
198205
- name: Compute test coverage
206+
if: steps.changed-files-specific.outputs.any_changed == 'true'
199207
uses: codecov/codecov-action@v1
200208

201209
job_artifacts:

0 commit comments

Comments
 (0)