From 4c0fd81a9427497087d2e1c7599c03e2b6f1f3e2 Mon Sep 17 00:00:00 2001 From: Abhijeet Prasad Date: Wed, 19 May 2021 13:07:26 -0400 Subject: [PATCH 1/3] build: Selectively run ember tests --- .github/workflows/build.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c2c31bc427d3..1aee84cf9658 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -193,9 +193,17 @@ jobs: with: path: ${{ env.CACHED_BUILD_PATHS }} key: ${{ env.BUILD_CACHE_KEY }} + - name: Check changed files + id: changed-files-specific + uses: tj-actions/changed-files@v6.2 + with: + files: .*packages\/(ember|browser|core|tracing|hub|minimal|types|utils)($|/.*) + # Only run ember tests if the files above have changed - name: Run Ember tests + if: steps.changed-files-specific.outputs.any_changed == 'true' run: yarn test --scope=@sentry/ember - name: Compute test coverage + if: steps.changed-files-specific.outputs.any_changed == 'true' uses: codecov/codecov-action@v1 job_artifacts: From 231481fdc8826663ebb89447be310cae220f49fa Mon Sep 17 00:00:00 2001 From: Abhijeet Prasad Date: Wed, 19 May 2021 14:07:52 -0400 Subject: [PATCH 2/3] test change to see if it works --- packages/minimal/src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/minimal/src/index.ts b/packages/minimal/src/index.ts index 117c8a769b92..27181d48a331 100644 --- a/packages/minimal/src/index.ts +++ b/packages/minimal/src/index.ts @@ -13,6 +13,8 @@ import { User, } from '@sentry/types'; +// Test change + /** * This calls a function on the current hub. * @param method function to call on hub. From 6f0b9da170431cbe2360259c1962d6ef5e09f3e9 Mon Sep 17 00:00:00 2001 From: Abhijeet Prasad Date: Wed, 19 May 2021 14:19:53 -0400 Subject: [PATCH 3/3] Revert "test change to see if it works" This reverts commit 0b786f03fb205109197a79c6abf8040dd6743b98. --- packages/minimal/src/index.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/minimal/src/index.ts b/packages/minimal/src/index.ts index 27181d48a331..117c8a769b92 100644 --- a/packages/minimal/src/index.ts +++ b/packages/minimal/src/index.ts @@ -13,8 +13,6 @@ import { User, } from '@sentry/types'; -// Test change - /** * This calls a function on the current hub. * @param method function to call on hub.