Skip to content

Commit ea7006a

Browse files
committed
run only for changes
1 parent 35525cb commit ea7006a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,10 @@ jobs:
133133
- 'packages/node-experimental/**'
134134
- 'packages/profiling-node/**'
135135
- 'dev-packages/node-integration-tests/**'
136+
profiling_node:
137+
- *shared
138+
- 'packages/node/**'
139+
- 'packages/profiling-node/**'
136140
deno:
137141
- *shared
138142
- *browser
@@ -150,6 +154,7 @@ jobs:
150154
changed_ember: ${{ steps.changed.outputs.ember }}
151155
changed_remix: ${{ steps.changed.outputs.remix }}
152156
changed_node: ${{ steps.changed.outputs.node }}
157+
changed_profiling_node: ${{ steps.changed.outputs.profiling_node }}
153158
changed_deno: ${{ steps.changed.outputs.deno }}
154159
changed_browser: ${{ steps.changed.outputs.browser }}
155160
changed_browser_integration: ${{ steps.changed.outputs.browser_integration }}
@@ -537,6 +542,7 @@ jobs:
537542
job_profiling_node_unit_tests:
538543
name: Node Profiling Unit Tests
539544
needs: [job_get_metadata, job_build]
545+
if: needs.job_get_metadata.outputs.changed_profiling_node == 'true' || github.event_name != 'pull_request'
540546
runs-on: ubuntu-latest
541547
timeout-minutes: 10
542548
steps:
@@ -1416,7 +1422,7 @@ jobs:
14161422
14171423
- name: Build Monorepo
14181424
if: steps.restore-build.outputs.cache-hit != 'true'
1419-
run: yarn build --ignore @sentry/serverless --ignore @sentry/browser --ignore @sentry/astro
1425+
run: yarn build --scope @sentry/profiling-node
14201426

14211427
- name: Test Bindings
14221428
if: matrix.arch != 'arm64'

0 commit comments

Comments
 (0)