3030 if : ${{ (github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'main') || (github.event_name == 'workflow_dispatch' && (github.event.inputs.platform == 'all' || github.event.inputs.platform == 'android')) }}
3131 env :
3232 HARNESS_DEBUG : true
33+ DEBUG : ' Metro:*'
3334 steps :
3435 - name : Checkout code
3536 uses : actions/checkout@v4
@@ -59,10 +60,10 @@ jobs:
5960 - name : Metro cache
6061 uses : actions/cache@v4
6162 with :
62- path : apps/playground/node_modules/.cache/rn- harness/metro-cache
63- key : metro-cache-${{ hashFiles('apps/playground/node_modules/.cache/rn-harness/metro-cache/ **/* ') }}
63+ path : apps/playground/. harness/metro-cache
64+ key : ${{ runner.os }}- metro-cache-${{ hashFiles('**/bun.lock', '**/bun.lockb', '**/package-lock.json', '**/npm-shrinkwrap.json', '**/pnpm-lock.yaml', '**/yarn.lock', ' **/metro.config.js', '**/metro.config.cjs', '**/metro.config.mjs', '**/metro.config.ts', '**/babel.config.js', '**/babel.config.cjs', '**/babel.config.mjs', '**/babel.config.ts', '**/babel.config.json ') }}
6465 restore-keys : |
65- metro-cache
66+ ${{ runner.os }}- metro-cache-
6667
6768 - name : Install dependencies
6869 run : |
@@ -110,6 +111,8 @@ jobs:
110111 runs-on : macos-latest
111112 timeout-minutes : 30
112113 if : ${{ (github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'main') || (github.event_name == 'workflow_dispatch' && (github.event.inputs.platform == 'all' || github.event.inputs.platform == 'ios')) }}
114+ env :
115+ DEBUG : ' Metro:*'
113116 steps :
114117 - name : Checkout code
115118 uses : actions/checkout@v4
@@ -131,10 +134,10 @@ jobs:
131134 - name : Metro cache
132135 uses : actions/cache@v4
133136 with :
134- path : apps/playground/node_modules/.cache/rn- harness/metro-cache
135- key : metro-cache-${{ hashFiles('apps/playground/node_modules/.cache/rn-harness/metro-cache/ **/* ') }}
137+ path : apps/playground/. harness/metro-cache
138+ key : ${{ runner.os }}- metro-cache-${{ hashFiles('**/bun.lock', '**/bun.lockb', '**/package-lock.json', '**/npm-shrinkwrap.json', '**/pnpm-lock.yaml', '**/yarn.lock', ' **/metro.config.js', '**/metro.config.cjs', '**/metro.config.mjs', '**/metro.config.ts', '**/babel.config.js', '**/babel.config.cjs', '**/babel.config.mjs', '**/babel.config.ts', '**/babel.config.json ') }}
136139 restore-keys : |
137- metro-cache
140+ ${{ runner.os }}- metro-cache-
138141
139142 - name : Install Watchman
140143 run : brew install watchman
@@ -199,6 +202,7 @@ jobs:
199202 if : ${{ (github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'main') || (github.event_name == 'workflow_dispatch' && (github.event.inputs.platform == 'all' || github.event.inputs.platform == 'web')) }}
200203 env :
201204 HARNESS_DEBUG : true
205+ DEBUG : ' Metro:*'
202206 steps :
203207 - name : Checkout code
204208 uses : actions/checkout@v4
@@ -220,10 +224,10 @@ jobs:
220224 - name : Metro cache
221225 uses : actions/cache@v4
222226 with :
223- path : apps/playground/node_modules/.cache/rn- harness/metro-cache
224- key : metro-cache-${{ hashFiles('apps/playground/node_modules/.cache/rn-harness/metro-cache/ **/* ') }}
227+ path : apps/playground/. harness/metro-cache
228+ key : ${{ runner.os }}- metro-cache-${{ hashFiles('**/bun.lock', '**/bun.lockb', '**/package-lock.json', '**/npm-shrinkwrap.json', '**/pnpm-lock.yaml', '**/yarn.lock', ' **/metro.config.js', '**/metro.config.cjs', '**/metro.config.mjs', '**/metro.config.ts', '**/babel.config.js', '**/babel.config.cjs', '**/babel.config.mjs', '**/babel.config.ts', '**/babel.config.json ') }}
225229 restore-keys : |
226- metro-cache
230+ ${{ runner.os }}- metro-cache-
227231
228232 - name : Install dependencies
229233 run : |
@@ -246,6 +250,7 @@ jobs:
246250 if : ${{ github.event_name == 'workflow_dispatch' && (github.event.inputs.platform == 'all' || github.event.inputs.platform == 'android') }}
247251 env :
248252 HARNESS_DEBUG : true
253+ DEBUG : ' Metro:*'
249254
250255 steps :
251256 - name : Checkout code
@@ -276,10 +281,10 @@ jobs:
276281 - name : Metro cache
277282 uses : actions/cache@v4
278283 with :
279- path : apps/playground/node_modules/.cache/rn- harness/metro-cache
280- key : metro-cache-${{ hashFiles('apps/playground/node_modules/.cache/rn-harness/metro-cache/ **/* ') }}
284+ path : apps/playground/. harness/metro-cache
285+ key : ${{ runner.os }}- metro-cache-${{ hashFiles('**/bun.lock', '**/bun.lockb', '**/package-lock.json', '**/npm-shrinkwrap.json', '**/pnpm-lock.yaml', '**/yarn.lock', ' **/metro.config.js', '**/metro.config.cjs', '**/metro.config.mjs', '**/metro.config.ts', '**/babel.config.js', '**/babel.config.cjs', '**/babel.config.mjs', '**/babel.config.ts', '**/babel.config.json ') }}
281286 restore-keys : |
282- metro-cache
287+ ${{ runner.os }}- metro-cache-
283288
284289 - name : Install dependencies
285290 run : |
@@ -351,6 +356,8 @@ jobs:
351356 runs-on : macos-latest
352357 timeout-minutes : 30
353358 if : ${{ github.event_name == 'workflow_dispatch' && (github.event.inputs.platform == 'all' || github.event.inputs.platform == 'ios') }}
359+ env :
360+ DEBUG : ' Metro:*'
354361 steps :
355362 - name : Checkout code
356363 uses : actions/checkout@v4
@@ -372,10 +379,10 @@ jobs:
372379 - name : Metro cache
373380 uses : actions/cache@v4
374381 with :
375- path : apps/playground/node_modules/.cache/rn- harness/metro-cache
376- key : metro-cache-${{ hashFiles('apps/playground/node_modules/.cache/rn-harness/metro-cache/ **/* ') }}
382+ path : apps/playground/. harness/metro-cache
383+ key : ${{ runner.os }}- metro-cache-${{ hashFiles('**/bun.lock', '**/bun.lockb', '**/package-lock.json', '**/npm-shrinkwrap.json', '**/pnpm-lock.yaml', '**/yarn.lock', ' **/metro.config.js', '**/metro.config.cjs', '**/metro.config.mjs', '**/metro.config.ts', '**/babel.config.js', '**/babel.config.cjs', '**/babel.config.mjs', '**/babel.config.ts', '**/babel.config.json ') }}
377384 restore-keys : |
378- metro-cache
385+ ${{ runner.os }}- metro-cache-
379386
380387 - name : Install Watchman
381388 run : brew install watchman
0 commit comments