Skip to content

test: Buffer.allowUnsafe on different versions #1

test: Buffer.allowUnsafe on different versions

test: Buffer.allowUnsafe on different versions #1

name: Test Buffer.allocUnsafe
on:
push:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions: {}
jobs:
example_matrix:
strategy:
matrix:
version: [10, 12, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25]
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
with:
node-version: ${{ matrix.version }}
- run: |
node -p '({
containsRandomData: Buffer.allocUnsafe(2 ** 20).some(v => v !== 0),
platform: process.platform,
snapshotEnabled: process.config.variables.node_use_node_snapshot,
})' >> "$GITHUB_STEP_SUMMARY"