Skip to content

Commit b80ce15

Browse files
committed
test: Buffer.allowUnsafe on different versions
1 parent 6176222 commit b80ce15

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Test Buffer.allocUnsafe
2+
3+
on:
4+
push:
5+
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
8+
cancel-in-progress: true
9+
10+
permissions: {}
11+
12+
jobs:
13+
example_matrix:
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
version: [10, 12, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25]
18+
os: [ubuntu-latest, windows-latest]
19+
runs-on: ${{ matrix.os }}
20+
steps:
21+
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
22+
with:
23+
node-version: ${{ matrix.version }}
24+
- run: node -e 'for (let i = 0; i < 1e6; i++) {if(Buffer.allocUnsafe(4096).some(x=>x))process.exit(0)}process.exit(1)'

0 commit comments

Comments
 (0)