Update node.js.yml #99
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Node.js CI | |
on: | |
push: | |
branches: [ "main", "dev" ] | |
pull_request: | |
branches: [ "main", "dev" ] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
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: install build-essrntial | |
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!" |