From 41eb8621f23235d7eceed9b141d9899d3ef0cef5 Mon Sep 17 00:00:00 2001 From: "C. Fuhrman" Date: Sun, 15 Sep 2024 11:14:49 -0400 Subject: [PATCH] add test action for PRs --- .github/workflows/frontend-tests.yml | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/frontend-tests.yml diff --git a/.github/workflows/frontend-tests.yml b/.github/workflows/frontend-tests.yml new file mode 100644 index 0000000..af1494a --- /dev/null +++ b/.github/workflows/frontend-tests.yml @@ -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