Skip to content

Update node.js.yml

Update node.js.yml #96

Workflow file for this run

name: Node.js CI
on:
push:
branches: [ "main", "dev" ]
pull_request:
branches: [ "main", "dev" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [8.x, 10.x, 12.x, 14.x, 16.x, 18.x, 20.x, 22.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: update
run: sudo apt update && sudo apt upgrade -y
- name: install build-essrntial
run: sudo apt install build-essential libgmp3-dev -y
- name: npm install
run: npm test
- name: npm start
run: npm start
- name: Verify build
run: echo "Build and test completed successfully!"