[tests] remove pretest compiler script (#33452)
This shouldn't be needed now that the lint rule was move
Ricky committed
Jun 6, 2025 at 09:16 UTC
a3be6829c6425f306a8bef9f7dba72d1347a64b3
3 files changed
+30
-1
.github/workflows/runtime_build_and_test.yml
+29
@@ -280,6 +280,35 @@ jobs:
280
if: steps.node_modules.outputs.cache-hit != 'true'
281
- run: yarn test ${{ matrix.params }} --ci --shard=${{ matrix.shard }}
282
283
+ # Hardcoded to improve parallelism
284
+ test-linter:
285
+ name: Test eslint-plugin-react-hooks
286
+ needs: [runtime_compiler_node_modules_cache]
287
+ runs-on: ubuntu-latest
288
+ steps:
289
+ - uses: actions/checkout@v4
290
+ - uses: actions/setup-node@v4
291
+ with:
292
+ node-version-file: '.nvmrc'
293
+ cache: yarn
294
+ cache-dependency-path: |
295
+ yarn.lock
296
+ compiler/yarn.lock
297
+ - name: Restore cached node_modules
298
+ uses: actions/cache@v4
299
+ id: node_modules
300
+ with:
301
+ path: |
302
+ **/node_modules
303
+ key: runtime-and-compiler-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'compiler/yarn.lock') }}
304
+ restore-keys: |
305
+ runtime-and-compiler-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-
306
+ runtime-and-compiler-node_modules-v6-
307
+ - run: yarn install --frozen-lockfile
308
+ if: steps.node_modules.outputs.cache-hit != 'true'
309
+ - run: ./scripts/react-compiler/build-compiler.sh && ./scripts/react-compiler/link-compiler.sh
310
+ - run: yarn workspace eslint-plugin-react-hooks test
311
+
312
# ----- BUILD -----
313
build_and_lint:
314
name: yarn build and lint
package.json
-1
@@ -129,7 +129,6 @@
129
"lint-build": "node ./scripts/rollup/validate/index.js",
130
"extract-errors": "node scripts/error-codes/extract-errors.js",
131
"postinstall": "node ./scripts/flow/createFlowConfigs.js",
132
- "pretest": "./scripts/react-compiler/build-compiler.sh && ./scripts/react-compiler/link-compiler.sh",
132
"test": "node ./scripts/jest/jest-cli.js",
133
"test-stable": "node ./scripts/jest/jest-cli.js --release-channel=stable",
134
"test-www": "node ./scripts/jest/jest-cli.js --release-channel=www-modern",
scripts/jest/config.base.js
+1
@@ -5,6 +5,7 @@ module.exports = {
5
modulePathIgnorePatterns: [
6
'<rootDir>/scripts/rollup/shims/',
7
'<rootDir>/scripts/bench/',
8
+ '<rootDir>/packages/eslint-plugin-react-hooks/',
9
],
10
transform: {
11
'^.+babel-plugin-react-compiler/dist/index.js$': [