@@ -146,22 +146,9 @@ jobs:
146146 with :
147147 node-version-file : ' package.json'
148148
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
165152
166153 - name : Check for Affected Nx Projects
167154@@ -200,7 +187,7 @@ jobs:
200187 run : yarn build
201188
202189 outputs :
203- dependency_cache_key : ${{ steps.compute_lockfile_hash .outputs.hash }}
190+ dependency_cache_key : ${{ steps.install_dependencies .outputs.cache_key }}
204191 changed_node_integration : ${{ needs.job_get_metadata.outputs.changed_ci == 'true' || contains(steps.checkForAffected.outputs.affected, '@sentry-internal/node-integration-tests') }}
205192 changed_remix : ${{ needs.job_get_metadata.outputs.changed_ci == 'true' || contains(steps.checkForAffected.outputs.affected, '@sentry/remix') }}
206193 changed_node : ${{ needs.job_get_metadata.outputs.changed_ci == 'true' || contains(steps.checkForAffected.outputs.affected, '@sentry/node') }}
@@ -293,22 +280,9 @@ jobs:
293280 with :
294281 node-version-file : ' package.json'
295282
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
312286
313287 - name : Check file formatting
314288 run : yarn lint:prettier && yarn lint:biome
@@ -480,7 +454,8 @@ jobs:
480454 strategy :
481455 fail-fast : false
482456 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']
484459 steps :
485460 - name : Check out base commit (${{ github.event.pull_request.base.sha }})
486461 uses : actions/checkout@v4
@@ -873,6 +848,7 @@ jobs:
873848 [
874849 ' angular-17' ,
875850 ' angular-18' ,
851+ ' astro-4' ,
876852 ' aws-lambda-layer-cjs' ,
877853 ' aws-serverless-esm' ,
878854 ' node-express' ,
@@ -977,6 +953,7 @@ jobs:
977953 with :
978954 path : ${{ github.workspace }}/packages/*/*.tgz
979955 key : ${{ env.BUILD_CACHE_TARBALL_KEY }}
956+ fail-on-cache-miss : true
980957
981958 - name : Install Playwright
982959 uses : ./.github/actions/install-playwright
@@ -1076,6 +1053,7 @@ jobs:
10761053 with :
10771054 path : ${{ github.workspace }}/packages/*/*.tgz
10781055 key : ${{ env.BUILD_CACHE_TARBALL_KEY }}
1056+ fail-on-cache-miss : true
10791057
10801058 - name : Install Playwright
10811059 uses : ./.github/actions/install-playwright
@@ -1446,6 +1424,7 @@ jobs:
14461424 path : ${{ env.CACHED_DEPENDENCY_PATHS }}
14471425 key : ${{ needs.job_build.outputs.dependency_cache_key }}
14481426 enableCrossOsArchive : true
1427+ fail-on-cache-miss : true
14491428
14501429 - name : Restore build cache
14511430 uses : actions/cache/restore@v4
@@ -1454,6 +1433,7 @@ jobs:
14541433 path : ${{ env.CACHED_BUILD_PATHS }}
14551434 key : ${{ needs.job_build.outputs.dependency_cache_key }}
14561435 enableCrossOsArchive : true
1436+ fail-on-cache-miss : true
14571437
14581438 - name : Configure safe directory
14591439 run : |
0 commit comments