Skip to content

Node.js CI

Node.js CI #3253

Workflow file for this run

name: Node.js CI
on:
push:
pull_request:
schedule:
- cron: "0 0 * * *"
permissions:
contents: read
jobs:
test:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
operating-system: [ubuntu-latest, windows-2019, macos-latest]
steps:
- name: Harden Runner
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
with:
egress-policy: audit
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: ${{ matrix.node-version }}
- run: npm install -g cmake-js@6.3.2
- run: npm install
- name: Environment Information
run: npx envinfo
- name: Run Test
run: npm test
nightly-daily-test:
runs-on: ubuntu-latest
container: node
steps:
- name: Harden Runner
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
with:
egress-policy: audit
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- run: npm i -g n && n nightly
- run: node -p process.versions
- name: Environment Information
run: npx envinfo
- run: npm install -g cmake-js@6.3.2
- run: npm install
- name: Environment Information
run: npx envinfo
- name: Run Test
continue-on-error: true
run: npm test