Skip to content

ci: Initial test workflow #1

ci: Initial test workflow

ci: Initial test workflow #1

Workflow file for this run

name: Test
on:
push:
branches: [ "master" ]
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
os: [ Windows, Ubuntu, macOS ]
node-ver: [12.x, 16.x, 20.x]
steps:
- uses: actions/checkout@v4
- name: Setup Node.js v${{ matrix.node-ver }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-ver }}
cache: 'npm'
- name: Clean install the project
run: npm ci
- name: Test the project
run: npm test