Skip to content

Commit 4e712b5

Browse files
desrosjclaude
andcommitted
CI: Remove the mobile-unit-js job from unit-test.yml
The `mobile-unit-js` job (`Mobile`) runs `npm run test:native`, the React Native mobile unit test suite. It is not disabled on this branch and it currently runs and passes; it is being removed for scope, not because it is broken. React Native support does not belong on a frozen release branch. The mobile workflows were already removed from `wp/6.5` earlier in this series: `rnmobile-ios-runner.yml` and `rnmobile-android-runner.yml` (both pinned to the retired `macos-12` image), along with `gradle-wrapper-validation.yml`, which existed only to support the Android build. This job is the last remaining piece of React Native CI here, and leaving it behind means every pull request to this branch keeps paying for a full `lerna run build` plus a Jest run to exercise a platform this branch no longer tests in any other way. Nothing else in the workflow depends on it: no job lists it under `needs:`, no job declares `outputs:`, and `mobile-unit-js` appears nowhere else in the repository. The four remaining jobs (`unit-js`, `test-php`, `phpcs`, `unit-php`) are unchanged. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DtSAAJkQ9P6vPtDumqStg8
1 parent 4785352 commit 4e712b5

1 file changed

Lines changed: 0 additions & 22 deletions

File tree

‎.github/workflows/unit-test.yml‎

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -232,25 +232,3 @@ jobs:
232232
- name: Mark the job as passed if all the checks pass
233233
if: ${{ needs.test-php.result == 'success' && needs.phpcs.result == 'success' }}
234234
run: exit 0
235-
236-
mobile-unit-js:
237-
name: Mobile
238-
runs-on: 'ubuntu-24.04'
239-
if: ${{ github.repository == 'WordPress/gutenberg' || github.event_name == 'pull_request' }}
240-
241-
steps:
242-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
243-
with:
244-
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
245-
246-
- name: Setup Node.js and install dependencies
247-
uses: ./.github/setup-node
248-
249-
- name: Npm build
250-
# It's not necessary to run the full build, since Jest can interpret
251-
# source files with `babel-jest`. Some packages have their own custom
252-
# build tasks, however. These must be run.
253-
run: npx lerna run build
254-
255-
- name: Running the tests
256-
run: npm run test:native -- --ci --maxWorkers=2 --cacheDirectory="$HOME/.jest-cache"

0 commit comments

Comments
 (0)