@@ -459,7 +459,7 @@ jobs:
459459 strategy :
460460 fail-fast : false
461461 matrix :
462- node : [14, 16, 18, 20, 22]
462+ node : [18, 20, 22]
463463 steps :
464464 - name : Check out base commit (${{ github.event.pull_request.base.sha }})
465465 uses : actions/checkout@v4
@@ -478,7 +478,6 @@ jobs:
478478 uses : ./.github/actions/restore-cache
479479 with :
480480 dependency_cache_key : ${{ needs.job_build.outputs.dependency_cache_key }}
481- node_version : ${{ matrix.node == 14 && '14' || '' }}
482481
483482 - name : Run affected tests
484483 run : yarn test:pr:node --base=${{ github.event.pull_request.base.sha }}
@@ -715,7 +714,7 @@ jobs:
715714 strategy :
716715 fail-fast : false
717716 matrix :
718- node : [14, 16, 18, 20, 22]
717+ node : [18, 20, 22]
719718 typescript :
720719 - false
721720 include :
@@ -735,17 +734,13 @@ jobs:
735734 uses : ./.github/actions/restore-cache
736735 with :
737736 dependency_cache_key : ${{ needs.job_build.outputs.dependency_cache_key }}
738- node_version : ${{ matrix.node == 14 && '14' || '' }}
739737
740738 - name : Overwrite typescript version
741- if : matrix.typescript
742- run : node ./scripts/use-ts-version .js ${{ matrix.typescript }}
739+ if : matrix.typescript == '3.8'
740+ run : node ./scripts/use-ts-3_8 .js
743741 working-directory : dev-packages/node-integration-tests
744742
745743 - name : Run integration tests
746- env :
747- NODE_VERSION : ${{ matrix.node }}
748- TS_VERSION : ${{ matrix.typescript }}
749744 working-directory : dev-packages/node-integration-tests
750745 run : yarn test
751746
@@ -760,10 +755,6 @@ jobs:
760755 matrix :
761756 node : [18, 20, 22]
762757 remix : [1, 2]
763- # Remix v2 only supports Node 18+, so run 16 tests separately
764- include :
765- - node : 16
766- remix : 1
767758 steps :
768759 - name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
769760 uses : actions/checkout@v4
@@ -1243,24 +1234,22 @@ jobs:
12431234 echo "One of the dependent jobs have failed. You may need to re-run it." && exit 1
12441235
12451236 job_compile_bindings_profiling_node :
1246- name : Compile & Test Profiling Bindings (v${{ matrix.node }}) ${{ matrix.target_platform || matrix.os }}, ${{ matrix.node || matrix.container }}, ${{ matrix.arch || matrix.container }}, ${{ contains(matrix.container, 'alpine') && 'musl' || 'glibc' }}
1237+ name : Compile profiling-node (v${{ matrix.node }}) ${{ matrix.target_platform || matrix.os }}, ${{ matrix.arch || matrix.container }}, ${{ contains(matrix.container, 'alpine') && 'musl' || 'glibc' }}
12471238 needs : [job_get_metadata, job_build]
12481239 # Compiling bindings can be very slow (especially on windows), so only run precompile
12491240 # Skip precompile unless we are on a release branch as precompile slows down CI times.
12501241 if : |
12511242 (needs.job_get_metadata.outputs.changed_profiling_node == 'true') ||
12521243 (needs.job_get_metadata.outputs.is_release == 'true')
12531244 runs-on : ${{ matrix.os }}
1254- container : ${{ matrix.container }}
1245+ container :
1246+ image : ${{ matrix.container }}
12551247 timeout-minutes : 30
12561248 strategy :
12571249 fail-fast : false
12581250 matrix :
12591251 include :
12601252 # x64 glibc
1261- - os : ubuntu-20.04
1262- node : 16
1263- binary : linux-x64-glibc-93
12641253 - os : ubuntu-20.04
12651254 node : 18
12661255 binary : linux-x64-glibc-108
@@ -1272,10 +1261,6 @@ jobs:
12721261 binary : linux-x64-glibc-127
12731262
12741263 # x64 musl
1275- - os : ubuntu-20.04
1276- container : node:16-alpine3.16
1277- binary : linux-x64-musl-93
1278- node : 16
12791264 - os : ubuntu-20.04
12801265 container : node:18-alpine3.17
12811266 node : 18
@@ -1290,10 +1275,6 @@ jobs:
12901275 binary : linux-x64-musl-127
12911276
12921277 # arm64 glibc
1293- - os : ubuntu-20.04
1294- arch : arm64
1295- node : 16
1296- binary : linux-arm64-glibc-93
12971278 - os : ubuntu-20.04
12981279 arch : arm64
12991280 node : 18
@@ -1308,11 +1289,6 @@ jobs:
13081289 binary : linux-arm64-glibc-127
13091290
13101291 # arm64 musl
1311- - os : ubuntu-20.04
1312- container : node:16-alpine3.16
1313- arch : arm64
1314- node : 16
1315- binary : linux-arm64-musl-93
13161292 - os : ubuntu-20.04
13171293 arch : arm64
13181294 container : node:18-alpine3.17
@@ -1330,10 +1306,6 @@ jobs:
13301306 binary : linux-arm64-musl-127
13311307
13321308 # macos x64
1333- - os : macos-13
1334- node : 16
1335- arch : x64
1336- binary : darwin-x64-93
13371309 - os : macos-13
13381310 node : 18
13391311 arch : x64
@@ -1348,11 +1320,6 @@ jobs:
13481320 binary : darwin-x64-127
13491321
13501322 # macos arm64
1351- - os : macos-13
1352- arch : arm64
1353- node : 16
1354- target_platform : darwin
1355- binary : darwin-arm64-93
13561323 - os : macos-13
13571324 arch : arm64
13581325 node : 18
@@ -1370,10 +1337,6 @@ jobs:
13701337 binary : darwin-arm64-127
13711338
13721339 # windows x64
1373- - os : windows-2022
1374- node : 16
1375- arch : x64
1376- binary : win32-x64-93
13771340 - os : windows-2022
13781341 node : 18
13791342 arch : x64
@@ -1399,8 +1362,13 @@ jobs:
13991362 with :
14001363 ref : ${{ env.HEAD_COMMIT }}
14011364
1365+ # Note: On alpine images, this does nothing
1366+ # The node version will be the one that is installed in the image
1367+ # If you want to change the node version, you need to change the image
1368+ # For non-alpine imgages, this will install the correct version of node
14021369 - name : Setup Node
14031370 uses : actions/setup-node@v4
1371+ if : contains(matrix.container, 'alpine') == false
14041372 with :
14051373 node-version : ${{ matrix.node }}
14061374
@@ -1417,10 +1385,10 @@ jobs:
14171385 run : yarn config set network-timeout 600000 -g
14181386
14191387 - name : Install dependencies
1420- env :
1421- SKIP_PLAYWRIGHT_BROWSER_INSTALL : " 1"
14221388 if : steps.restore-dependencies.outputs.cache-hit != 'true'
14231389 run : yarn install --ignore-engines --frozen-lockfile
1390+ env :
1391+ SKIP_PLAYWRIGHT_BROWSER_INSTALL : " 1"
14241392
14251393 - name : Configure safe directory
14261394 run : |
@@ -1498,8 +1466,7 @@ jobs:
14981466 BUILD_ARCH=arm64 \
14991467 yarn build:bindings:arm64
15001468
1501- - name : Build Monorepo
1502- if : steps.restore-build.outputs.cache-hit != 'true'
1469+ - name : Build profiling-node & its dependencies
15031470 run : yarn build --scope @sentry/profiling-node
15041471
15051472 - name : Test Bindings
0 commit comments