Skip to content

Commit 34a2dd5

Browse files
authored
test: Test Node.js 23 in CI (#5416)
1 parent 39e9a09 commit 34a2dd5

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/unit-test.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
- "20.6.0"
1818
- "20"
1919
- "22"
20+
- "23"
2021
runs-on: ubuntu-latest
2122
env:
2223
NPM_CONFIG_UNSAFE_PERM: true
@@ -43,7 +44,8 @@ jobs:
4344
- run: npm install -g npm@latest
4445
if: ${{
4546
matrix.node_version == '20' ||
46-
matrix.node_version == '22'
47+
matrix.node_version == '22' ||
48+
matrix.node_version == '23'
4749
}}
4850

4951
- name: Bootstrap
@@ -52,8 +54,15 @@ jobs:
5254
- name: Build 🔧
5355
run: npm run compile
5456

55-
- name: Unit tests
56-
run: npm run test
57+
- run: npm test
58+
if: ${{ matrix.node_version != '23' }}
59+
# Node.js 23 type stripping conflicts with mocha usage of ts-node.
60+
# See https://github.com/open-telemetry/opentelemetry-js/issues/5415
61+
- run: npm test
62+
env:
63+
NODE_OPTIONS: '--no-experimental-strip-types'
64+
if: ${{ matrix.node_version == '23' }}
65+
5766
- name: Report Coverage
5867
uses: codecov/codecov-action@v5
5968
env:

0 commit comments

Comments
 (0)