@@ -233,8 +233,8 @@ jobs:
233
233
node-version-file : ' package.json'
234
234
- name : Restore caches
235
235
uses : ./.github/actions/restore-cache
236
- env :
237
- DEPENDENCY_CACHE_KEY : ${{ needs.job_build.outputs.dependency_cache_key }}
236
+ with :
237
+ dependency_cache_key : ${{ needs.job_build.outputs.dependency_cache_key }}
238
238
- name : Check bundle sizes
239
239
uses : ./dev-packages/size-limit-gh-action
240
240
with :
@@ -260,8 +260,8 @@ jobs:
260
260
node-version-file : ' package.json'
261
261
- name : Restore caches
262
262
uses : ./.github/actions/restore-cache
263
- env :
264
- DEPENDENCY_CACHE_KEY : ${{ needs.job_build.outputs.dependency_cache_key }}
263
+ with :
264
+ dependency_cache_key : ${{ needs.job_build.outputs.dependency_cache_key }}
265
265
- name : Lint source files
266
266
run : yarn lint:lerna
267
267
- name : Lint C++ files
@@ -306,8 +306,8 @@ jobs:
306
306
node-version-file : ' package.json'
307
307
- name : Restore caches
308
308
uses : ./.github/actions/restore-cache
309
- env :
310
- DEPENDENCY_CACHE_KEY : ${{ needs.job_build.outputs.dependency_cache_key }}
309
+ with :
310
+ dependency_cache_key : ${{ needs.job_build.outputs.dependency_cache_key }}
311
311
- name : Run madge
312
312
run : yarn circularDepCheck
313
313
@@ -328,8 +328,8 @@ jobs:
328
328
node-version-file : ' package.json'
329
329
- name : Restore caches
330
330
uses : ./.github/actions/restore-cache
331
- env :
332
- DEPENDENCY_CACHE_KEY : ${{ needs.job_build.outputs.dependency_cache_key }}
331
+ with :
332
+ dependency_cache_key : ${{ needs.job_build.outputs.dependency_cache_key }}
333
333
334
334
- name : Extract Profiling Node Prebuilt Binaries
335
335
uses : actions/download-artifact@v4
@@ -376,8 +376,8 @@ jobs:
376
376
node-version-file : ' package.json'
377
377
- name : Restore caches
378
378
uses : ./.github/actions/restore-cache
379
- env :
380
- DEPENDENCY_CACHE_KEY : ${{ needs.job_build.outputs.dependency_cache_key }}
379
+ with :
380
+ dependency_cache_key : ${{ needs.job_build.outputs.dependency_cache_key }}
381
381
382
382
- name : Run affected tests
383
383
run : yarn test:pr:browser --base=${{ github.event.pull_request.base.sha }}
@@ -413,8 +413,8 @@ jobs:
413
413
uses : oven-sh/setup-bun@v2
414
414
- name : Restore caches
415
415
uses : ./.github/actions/restore-cache
416
- env :
417
- DEPENDENCY_CACHE_KEY : ${{ needs.job_build.outputs.dependency_cache_key }}
416
+ with :
417
+ dependency_cache_key : ${{ needs.job_build.outputs.dependency_cache_key }}
418
418
- name : Run tests
419
419
run : |
420
420
yarn test:ci:bun
@@ -442,8 +442,8 @@ jobs:
442
442
deno-version : v1.38.5
443
443
- name : Restore caches
444
444
uses : ./.github/actions/restore-cache
445
- env :
446
- DEPENDENCY_CACHE_KEY : ${{ needs.job_build.outputs.dependency_cache_key }}
445
+ with :
446
+ dependency_cache_key : ${{ needs.job_build.outputs.dependency_cache_key }}
447
447
- name : Run tests
448
448
run : |
449
449
cd packages/deno
@@ -476,8 +476,9 @@ jobs:
476
476
node-version : ${{ matrix.node }}
477
477
- name : Restore caches
478
478
uses : ./.github/actions/restore-cache
479
- env :
480
- DEPENDENCY_CACHE_KEY : ${{ needs.job_build.outputs.dependency_cache_key }}
479
+ with :
480
+ dependency_cache_key : ${{ needs.job_build.outputs.dependency_cache_key }}
481
+ node_version : ${{ matrix.node == 14 && '14' || '' }}
481
482
482
483
- name : Run affected tests
483
484
run : yarn test:pr:node --base=${{ github.event.pull_request.base.sha }}
@@ -515,8 +516,8 @@ jobs:
515
516
python-version : ' 3.11.7'
516
517
- name : Restore caches
517
518
uses : ./.github/actions/restore-cache
518
- env :
519
- DEPENDENCY_CACHE_KEY : ${{ needs.job_build.outputs.dependency_cache_key }}
519
+ with :
520
+ dependency_cache_key : ${{ needs.job_build.outputs.dependency_cache_key }}
520
521
- name : Build Configure node-gyp
521
522
run : yarn lerna run build:bindings:configure --scope @sentry/profiling-node
522
523
- name : Build Bindings for Current Environment
@@ -583,8 +584,8 @@ jobs:
583
584
node-version-file : ' package.json'
584
585
- name : Restore caches
585
586
uses : ./.github/actions/restore-cache
586
- env :
587
- DEPENDENCY_CACHE_KEY : ${{ needs.job_build.outputs.dependency_cache_key }}
587
+ with :
588
+ dependency_cache_key : ${{ needs.job_build.outputs.dependency_cache_key }}
588
589
589
590
- name : Install Playwright
590
591
uses : ./.github/actions/install-playwright
@@ -635,8 +636,8 @@ jobs:
635
636
node-version-file : ' package.json'
636
637
- name : Restore caches
637
638
uses : ./.github/actions/restore-cache
638
- env :
639
- DEPENDENCY_CACHE_KEY : ${{ needs.job_build.outputs.dependency_cache_key }}
639
+ with :
640
+ dependency_cache_key : ${{ needs.job_build.outputs.dependency_cache_key }}
640
641
641
642
- name : Install Playwright
642
643
uses : ./.github/actions/install-playwright
@@ -674,8 +675,8 @@ jobs:
674
675
node-version-file : ' package.json'
675
676
- name : Restore caches
676
677
uses : ./.github/actions/restore-cache
677
- env :
678
- DEPENDENCY_CACHE_KEY : ${{ needs.job_build.outputs.dependency_cache_key }}
678
+ with :
679
+ dependency_cache_key : ${{ needs.job_build.outputs.dependency_cache_key }}
679
680
- name : Check for dts files that reference stuff in the temporary build folder
680
681
run : |
681
682
if grep -r --include "*.d.ts" --exclude-dir ".nxcache" 'import("@sentry(-internal)?/[^/]*/build' .; then
@@ -712,8 +713,9 @@ jobs:
712
713
node-version : ${{ matrix.node }}
713
714
- name : Restore caches
714
715
uses : ./.github/actions/restore-cache
715
- env :
716
- DEPENDENCY_CACHE_KEY : ${{ needs.job_build.outputs.dependency_cache_key }}
716
+ with :
717
+ dependency_cache_key : ${{ needs.job_build.outputs.dependency_cache_key }}
718
+ node_version : ${{ matrix.node == 14 && '14' || '' }}
717
719
718
720
- name : Overwrite typescript version
719
721
if : matrix.typescript
@@ -753,8 +755,8 @@ jobs:
753
755
node-version : ${{ matrix.node }}
754
756
- name : Restore caches
755
757
uses : ./.github/actions/restore-cache
756
- env :
757
- DEPENDENCY_CACHE_KEY : ${{ needs.job_build.outputs.dependency_cache_key }}
758
+ with :
759
+ dependency_cache_key : ${{ needs.job_build.outputs.dependency_cache_key }}
758
760
759
761
- name : Install Playwright
760
762
uses : ./.github/actions/install-playwright
@@ -791,8 +793,8 @@ jobs:
791
793
node-version-file : ' package.json'
792
794
- name : Restore caches
793
795
uses : ./.github/actions/restore-cache
794
- env :
795
- DEPENDENCY_CACHE_KEY : ${{ needs.job_build.outputs.dependency_cache_key }}
796
+ with :
797
+ dependency_cache_key : ${{ needs.job_build.outputs.dependency_cache_key }}
796
798
- name : NX cache
797
799
uses : actions/cache/restore@v4
798
800
with :
@@ -953,15 +955,19 @@ jobs:
953
955
uses : oven-sh/setup-bun@v2
954
956
- name : Restore caches
955
957
uses : ./.github/actions/restore-cache
956
- env :
957
- DEPENDENCY_CACHE_KEY : ${{ needs.job_build.outputs.dependency_cache_key }}
958
+ with :
959
+ dependency_cache_key : ${{ needs.job_build.outputs.dependency_cache_key }}
958
960
959
961
- name : Restore tarball cache
960
962
uses : actions/cache/restore@v4
963
+ id : restore-tarball-cache
961
964
with :
962
965
path : ${{ github.workspace }}/packages/*/*.tgz
963
966
key : ${{ env.BUILD_CACHE_TARBALL_KEY }}
964
- fail-on-cache-miss : true
967
+
968
+ - name : Build tarballs if not cached
969
+ if : steps.restore-tarball-cache.outputs.cache-hit != 'true'
970
+ run : yarn build:tarball
965
971
966
972
- name : Install Playwright
967
973
uses : ./.github/actions/install-playwright
@@ -1053,15 +1059,19 @@ jobs:
1053
1059
node-version-file : ' dev-packages/e2e-tests/package.json'
1054
1060
- name : Restore caches
1055
1061
uses : ./.github/actions/restore-cache
1056
- env :
1057
- DEPENDENCY_CACHE_KEY : ${{ needs.job_build.outputs.dependency_cache_key }}
1062
+ with :
1063
+ dependency_cache_key : ${{ needs.job_build.outputs.dependency_cache_key }}
1058
1064
1059
1065
- name : Restore tarball cache
1060
1066
uses : actions/cache/restore@v4
1067
+ id : restore-tarball-cache
1061
1068
with :
1062
1069
path : ${{ github.workspace }}/packages/*/*.tgz
1063
1070
key : ${{ env.BUILD_CACHE_TARBALL_KEY }}
1064
- fail-on-cache-miss : true
1071
+
1072
+ - name : Build tarballs if not cached
1073
+ if : steps.restore-tarball-cache.outputs.cache-hit != 'true'
1074
+ run : yarn build:tarball
1065
1075
1066
1076
- name : Install Playwright
1067
1077
uses : ./.github/actions/install-playwright
@@ -1148,8 +1158,8 @@ jobs:
1148
1158
node-version-file : ' dev-packages/e2e-tests/package.json'
1149
1159
- name : Restore caches
1150
1160
uses : ./.github/actions/restore-cache
1151
- env :
1152
- DEPENDENCY_CACHE_KEY : ${{ needs.job_build.outputs.dependency_cache_key }}
1161
+ with :
1162
+ dependency_cache_key : ${{ needs.job_build.outputs.dependency_cache_key }}
1153
1163
- name : Build Profiling Node
1154
1164
run : yarn lerna run build:lib --scope @sentry/profiling-node
1155
1165
- name : Extract Profiling Node Prebuilt Binaries
@@ -1158,12 +1168,17 @@ jobs:
1158
1168
pattern : profiling-node-binaries-${{ github.sha }}-*
1159
1169
path : ${{ github.workspace }}/packages/profiling-node/lib/
1160
1170
merge-multiple : true
1171
+
1161
1172
- name : Restore tarball cache
1162
1173
uses : actions/cache/restore@v4
1174
+ id : restore-tarball-cache
1163
1175
with :
1164
1176
path : ${{ github.workspace }}/packages/*/*.tgz
1165
1177
key : ${{ env.BUILD_CACHE_TARBALL_KEY }}
1166
- fail-on-cache-miss : true
1178
+
1179
+ - name : Build tarballs if not cached
1180
+ if : steps.restore-tarball-cache.outputs.cache-hit != 'true'
1181
+ run : yarn build:tarball
1167
1182
1168
1183
- name : Install Playwright
1169
1184
uses : ./.github/actions/install-playwright
@@ -1244,8 +1259,8 @@ jobs:
1244
1259
node-version-file : ' package.json'
1245
1260
- name : Restore caches
1246
1261
uses : ./.github/actions/restore-cache
1247
- env :
1248
- DEPENDENCY_CACHE_KEY : ${{ needs.job_build.outputs.dependency_cache_key }}
1262
+ with :
1263
+ dependency_cache_key : ${{ needs.job_build.outputs.dependency_cache_key }}
1249
1264
1250
1265
- name : Collect
1251
1266
run : yarn ci:collect
0 commit comments