Update test_js job to be dependent on lint (#55428)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/55428

With a lighter weight `lint` job, make this blocking for `test_js` runs. The combined `lint` + `test_js` execution time in series remains far less than the native build+test jobs.

Changelog: [Internal]

Reviewed By: cortinico

Differential Revision: D92417805

fbshipit-source-id: 05832257518c8141ca0955f18e740f752e675d4d
This commit is contained in:
Alex Hunt authored and meta-codesync[bot] committed 2026-02-05 11:06:06 -08:00
1 parent 7e752341bd
commit e0935e645d
1 file changed
+15 -15
+15 -15
View File
@@ -486,21 +486,6 @@ jobs:
flavor: ${{ matrix.flavor }}
use-frameworks: ${{ matrix.use_frameworks }}
test_js:
runs-on: ubuntu-latest
if: github.repository == 'facebook/react-native'
strategy:
fail-fast: false
matrix:
node-version: ["24", "22", "20.19.4"]
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Test JS
uses: ./.github/actions/test-js
with:
node-version: ${{ matrix.node-version }}
lint:
runs-on: ubuntu-latest
if: github.repository == 'facebook/react-native'
@@ -531,6 +516,21 @@ jobs:
shell: bash
run: yarn test-typescript
test_js:
runs-on: ubuntu-latest
needs: lint
strategy:
fail-fast: false
matrix:
node-version: ["24", "22", "20.19.4"]
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Test JS
uses: ./.github/actions/test-js
with:
node-version: ${{ matrix.node-version }}
build_js_types:
runs-on: ubuntu-latest
needs: lint