Skip to content

Validate corrupted Node.js #7

Validate corrupted Node.js

Validate corrupted Node.js #7

name: Validate corrupted Node.js SDK
on:
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v6
- name: Setup Node.js
id: setup-node
uses: actions/setup-node@v6
with:
node-version: '21'
# Restore Node cache (mirrors Restore Go cache)
- name: Restore Node cache
id: node-cache
uses: actions/cache/restore@v5
with:
path: ${{ env.NODE_CACHE }}
key: setup-node-${{ runner.os }}-${{ env.ARCH }}-node-${{ steps.setup-node.outputs.node-version }}-${{ hashFiles('**/*lock*') }}
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build --if-present