Skip to content

Commit ab36cdc

Browse files
huntiemeta-codesync[bot]
authored andcommitted
Add build_debugger_shell check to CI (#55416)
Summary: Pull Request resolved: #55416 Adds a `build_debugger_shell` job as part of the `test-all` workflow, adding missing coverage to `scripts/debugger-shell/build-binary.js`. This was broken recently by #54857. Changelog: [Internal] Reviewed By: cipolleschi Differential Revision: D92396626 fbshipit-source-id: dda9427a936c46ec74821c10a8578c8a299890e9
1 parent a25049b commit ab36cdc

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/test-all.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,23 @@ jobs:
3333
3434
echo "Should I run E2E tests? ${{ inputs.run-e2e-tests }}"
3535
36+
check_code_changes:
37+
runs-on: ubuntu-latest
38+
if: github.repository == 'facebook/react-native'
39+
outputs:
40+
debugger_shell: ${{ steps.filter.outputs.debugger_shell }}
41+
steps:
42+
- name: Checkout
43+
uses: actions/checkout@v6
44+
- name: Check for code changes
45+
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36
46+
id: filter
47+
with:
48+
filters: |
49+
debugger_shell:
50+
- 'packages/debugger-shell/**'
51+
- 'scripts/debugger-shell/**'
52+
3653
prebuild_apple_dependencies:
3754
if: github.repository == 'facebook/react-native'
3855
uses: ./.github/workflows/prebuild-ios-dependencies.yml
@@ -497,6 +514,22 @@ jobs:
497514
with:
498515
github-token: ${{ env.GH_TOKEN }}
499516

517+
build_debugger_shell:
518+
runs-on: ubuntu-latest
519+
needs: check_code_changes
520+
if: needs.check_code_changes.outputs.debugger_shell == 'true'
521+
steps:
522+
- name: Checkout
523+
uses: actions/checkout@v6
524+
- name: Setup node.js
525+
uses: ./.github/actions/setup-node
526+
- name: Run yarn install
527+
uses: ./.github/actions/yarn-install
528+
- name: Build packages
529+
run: yarn build
530+
- name: Verify debugger-shell build
531+
run: node scripts/debugger-shell/build-binary.js
532+
500533
# This job should help with the E2E flakyness.
501534
# In case E2E tests fails, it launches a new retry-workflow workflow, passing the current run_id as input.
502535
# The retry-workflow reruns only the failed jobs of the current test-all workflow using

0 commit comments

Comments
 (0)