uhppoted
Version:
NodeJS module wrapper for the interface to UHPPOTE TCP/IP Wiegand Access Controllers
35 lines (27 loc) • 632 B
YAML
name: build
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.20.6, 19.9.0, 20.18.2, 21.7.3, 22.13.1, 23.6.1]
steps:
- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Check out code
uses: actions/checkout@v4
- name: Install eslint
run: npm install eslint prettier --save-dev
- name: Build and test
run: |
npm ci
npm run build --if-present
npm test