@@ -146,22 +146,9 @@ jobs:
146
146
with :
147
147
node-version-file : ' package.json'
148
148
149
- # we use a hash of yarn.lock as our cache key, because if it hasn't changed, our dependencies haven't changed,
150
- # so no need to reinstall them
151
- - name : Compute dependency cache key
152
- id : compute_lockfile_hash
153
- run : echo "hash=${{ hashFiles('yarn.lock', '**/package.json') }}" >> "$GITHUB_OUTPUT"
154
-
155
- - name : Check dependency cache
156
- uses : actions/cache@v4
157
- id : cache_dependencies
158
- with :
159
- path : ${{ env.CACHED_DEPENDENCY_PATHS }}
160
- key : ${{ steps.compute_lockfile_hash.outputs.hash }}
161
-
162
- - name : Install dependencies
163
- if : steps.cache_dependencies.outputs.cache-hit != 'true'
164
- run : yarn install --ignore-engines --frozen-lockfile
149
+ - name : Install Dependencies
150
+ uses : ./.github/actions/install-dependencies
151
+ id : install_dependencies
165
152
166
153
- name : Check for Affected Nx Projects
167
154
@@ -200,7 +187,7 @@ jobs:
200
187
run : yarn build
201
188
202
189
outputs :
203
- dependency_cache_key : ${{ steps.compute_lockfile_hash .outputs.hash }}
190
+ dependency_cache_key : ${{ steps.install_dependencies .outputs.cache_key }}
204
191
changed_node_integration : ${{ needs.job_get_metadata.outputs.changed_ci == 'true' || contains(steps.checkForAffected.outputs.affected, '@sentry-internal/node-integration-tests') }}
205
192
changed_remix : ${{ needs.job_get_metadata.outputs.changed_ci == 'true' || contains(steps.checkForAffected.outputs.affected, '@sentry/remix') }}
206
193
changed_node : ${{ needs.job_get_metadata.outputs.changed_ci == 'true' || contains(steps.checkForAffected.outputs.affected, '@sentry/node') }}
@@ -293,22 +280,9 @@ jobs:
293
280
with :
294
281
node-version-file : ' package.json'
295
282
296
- # we use a hash of yarn.lock as our cache key, because if it hasn't changed, our dependencies haven't changed,
297
- # so no need to reinstall them
298
- - name : Compute dependency cache key
299
- id : compute_lockfile_hash
300
- run : echo "hash=${{ hashFiles('yarn.lock', '**/package.json') }}" >> "$GITHUB_OUTPUT"
301
-
302
- - name : Check dependency cache
303
- uses : actions/cache@v4
304
- id : cache_dependencies
305
- with :
306
- path : ${{ env.CACHED_DEPENDENCY_PATHS }}
307
- key : ${{ steps.compute_lockfile_hash.outputs.hash }}
308
-
309
- - name : Install dependencies
310
- if : steps.cache_dependencies.outputs.cache-hit != 'true'
311
- run : yarn install --ignore-engines --frozen-lockfile
283
+ - name : Install Dependencies
284
+ uses : ./.github/actions/install-dependencies
285
+ id : install_dependencies
312
286
313
287
- name : Check file formatting
314
288
run : yarn lint:prettier && yarn lint:biome
@@ -480,7 +454,8 @@ jobs:
480
454
strategy :
481
455
fail-fast : false
482
456
matrix :
483
- node : [14, 16, 18, 20, 22]
457
+ # TODO(lforst): Unpin Node.js version 22 when https://github.com/protobufjs/protobuf.js/issues/2025 is resolved which broke the nodejs tests
458
+ node : [14, 16, 18, 20, '22.6.0']
484
459
steps :
485
460
- name : Check out base commit (${{ github.event.pull_request.base.sha }})
486
461
uses : actions/checkout@v4
@@ -873,6 +848,7 @@ jobs:
873
848
[
874
849
' angular-17' ,
875
850
' angular-18' ,
851
+ ' astro-4' ,
876
852
' aws-lambda-layer-cjs' ,
877
853
' aws-serverless-esm' ,
878
854
' node-express' ,
@@ -977,6 +953,7 @@ jobs:
977
953
with :
978
954
path : ${{ github.workspace }}/packages/*/*.tgz
979
955
key : ${{ env.BUILD_CACHE_TARBALL_KEY }}
956
+ fail-on-cache-miss : true
980
957
981
958
- name : Install Playwright
982
959
uses : ./.github/actions/install-playwright
@@ -1076,6 +1053,7 @@ jobs:
1076
1053
with :
1077
1054
path : ${{ github.workspace }}/packages/*/*.tgz
1078
1055
key : ${{ env.BUILD_CACHE_TARBALL_KEY }}
1056
+ fail-on-cache-miss : true
1079
1057
1080
1058
- name : Install Playwright
1081
1059
uses : ./.github/actions/install-playwright
@@ -1446,6 +1424,7 @@ jobs:
1446
1424
path : ${{ env.CACHED_DEPENDENCY_PATHS }}
1447
1425
key : ${{ needs.job_build.outputs.dependency_cache_key }}
1448
1426
enableCrossOsArchive : true
1427
+ fail-on-cache-miss : true
1449
1428
1450
1429
- name : Restore build cache
1451
1430
uses : actions/cache/restore@v4
@@ -1454,6 +1433,7 @@ jobs:
1454
1433
path : ${{ env.CACHED_BUILD_PATHS }}
1455
1434
key : ${{ needs.job_build.outputs.dependency_cache_key }}
1456
1435
enableCrossOsArchive : true
1436
+ fail-on-cache-miss : true
1457
1437
1458
1438
- name : Configure safe directory
1459
1439
run : |
0 commit comments