File tree Expand file tree Collapse file tree 3 files changed +30
-1
lines changed Expand file tree Collapse file tree 3 files changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -280,6 +280,35 @@ jobs:
280
280
if : steps.node_modules.outputs.cache-hit != 'true'
281
281
- run : yarn test ${{ matrix.params }} --ci --shard=${{ matrix.shard }}
282
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
+
283
312
# ----- BUILD -----
284
313
build_and_lint :
285
314
name : yarn build and lint
Original file line number Diff line number Diff line change 129
129
"lint-build" : " node ./scripts/rollup/validate/index.js" ,
130
130
"extract-errors" : " node scripts/error-codes/extract-errors.js" ,
131
131
"postinstall" : " node ./scripts/flow/createFlowConfigs.js" ,
132
- "pretest" : " ./scripts/react-compiler/build-compiler.sh && ./scripts/react-compiler/link-compiler.sh" ,
133
132
"test" : " node ./scripts/jest/jest-cli.js" ,
134
133
"test-stable" : " node ./scripts/jest/jest-cli.js --release-channel=stable" ,
135
134
"test-www" : " node ./scripts/jest/jest-cli.js --release-channel=www-modern" ,
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ module.exports = {
5
5
modulePathIgnorePatterns : [
6
6
'<rootDir>/scripts/rollup/shims/' ,
7
7
'<rootDir>/scripts/bench/' ,
8
+ '<rootDir>/packages/eslint-plugin-react-hooks/' ,
8
9
] ,
9
10
transform : {
10
11
'^.+babel-plugin-react-compiler/dist/index.js$' : [
You can’t perform that action at this time.
0 commit comments