Skip to content

Update actions to run when a PR is modified or merged into main #19

Update actions to run when a PR is modified or merged into main

Update actions to run when a PR is modified or merged into main #19

Workflow file for this run

name: Run unit tests
on:
pull_request:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [21.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Run tests
run: npm test