Skip to content

Added Github Actions workflow to run npm test script on push to git #1

Added Github Actions workflow to run npm test script on push to git

Added Github Actions workflow to run npm test script on push to git #1

name: Lint and Test
on: push
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['22.x', '23.x']
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm install
- run: npm test