add test action for PRs

This commit is contained in:
C. Fuhrman 2024-09-15 11:14:49 -04:00
parent a7862fc98d
commit 41eb8621f2

30
.github/workflows/frontend-tests.yml vendored Normal file
View file

@ -0,0 +1,30 @@
name: Frontend Tests
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check Out Repo
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Install Dependencies
run: npm install
working-directory: ./client
- name: Run Tests
run: npm test
working-directory: ./client