3939 npm pkg set 'workspaces[]'='examples/normalizr-relationships'
4040 - restore_cache :
4141 keys :
42- - v14 -dependencies-{{ checksum "yarn.lock" }}-{{ checksum "examples/github-app/package.json" }}-{{ checksum "examples/todo-app/package.json" }}
42+ - v15 -dependencies-{{ checksum "yarn.lock" }}-{{ checksum "examples/github-app/package.json" }}-{{ checksum "examples/todo-app/package.json" }}
4343 # fallback to using the latest cache if no exact match is found
44- - v14 -dependencies-
44+ - v15 -dependencies-
4545 - run :
4646 name : yarn install
4747 command : |
5050 paths :
5151 - .yarn/cache
5252 - .yarn/install-state.gz
53- key : v14 -dependencies-{{ checksum "yarn.lock" }}-{{ checksum "examples/github-app/package.json" }}-{{ checksum "examples/todo-app/package.json" }}
53+ key : v15 -dependencies-{{ checksum "yarn.lock" }}-{{ checksum "examples/github-app/package.json" }}-{{ checksum "examples/todo-app/package.json" }}
5454 - run : yarn run ci:build:types
5555 - run : yarn run ci:build-test-lib
5656 - persist_to_workspace :
@@ -62,10 +62,11 @@ jobs:
6262 - project/examples/todo-app
6363 - project/examples/github-app
6464 - project/examples/normalizr-relationships
65- - project/node_modules
6665 - project/packages
6766 - project/scripts
6867 - project/.yarnrc.yml
68+ - project/.pnp.cjs
69+ - project/.pnp.loader.mjs
6970 - project/babel.config.js
7071 - project/eslint.config.mjs
7172 - project/jest.config.js
@@ -109,7 +110,7 @@ jobs:
109110 command : |
110111 if [ "<< parameters.react-version >>" == "^17.0.0" ]; then
111112 yarn up react@<< parameters.react-version >> react-dom@<< parameters.react-version >> react-test-renderer@<< parameters.react-version >> @react-navigation/native@^6.0.0 @react-navigation/native-stack@^6.0.0 react-native-screens@^3.0.0 @testing-library/react@^12.0.0
112- yarn add --dev @testing-library/react-hooks
113+ yarn workspace @data-client/react add --dev @testing-library/react-hooks
113114 elif [ "<< parameters.react-version >>" == "^18" ]; then
114115 yarn up react@<< parameters.react-version >> react-dom@<< parameters.react-version >> react-test-renderer@<< parameters.react-version >>
115116 fi
@@ -144,10 +145,15 @@ jobs:
144145 - run :
145146 command : |
146147 node --version
148+ - run :
149+ name : Install testing packages compatible with Node
150+ command : |
151+ yarn workspace @data-client/react add --dev @testing-library/react-hooks
152+ yarn up react@18 react-dom@18 react-test-renderer@18
147153 - run :
148154 # we must use npm because yarn 4 isn't compatible with legacy node versions
149155 command : |
150- ANANSI_JEST_TYPECHECK=false npm test --ci --maxWorkers=2 --selectProjects Node
156+ ANANSI_JEST_TYPECHECK=false yarn test --ci --maxWorkers=2 --selectProjects Node
151157
152158 setup-esmodule-types :
153159 executor : node
@@ -225,7 +231,7 @@ jobs:
225231 - run :
226232 command : |
227233 cd examples/todo-app
228- npm run build:browser -- --env readable
234+ yarn run build:browser --env readable
229235 - run :
230236 command : |
231237 cd examples/normalizr-relationships
@@ -245,7 +251,7 @@ workflows:
245251 - node_matrix :
246252 matrix :
247253 parameters :
248- node-version : ["14.21", "16.19", " 18.18", "20.12.2"]
254+ node-version : ["18.18", "20.12.2"]
249255 requires :
250256 - setup
251257 - lint :
0 commit comments