Skip to content

Add workflow to test PRs #1

Add workflow to test PRs

Add workflow to test PRs #1

Workflow file for this run

name: Run Build and Tests on Pull Request
on:
pull_request:
types:
- opened
- reopened
- synchronize
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
run: npm install
- name: Build the project
run: npm run build
- name: Run tests
run: npm test