Skip to content

Commit

Permalink
Create test.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
gtnolan authored Oct 23, 2024
1 parent d8a4839 commit aaa7899
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Run Jest Tests (Backend)

on:
pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '22.7.0'

- name: Install dependencies (global)
run: npm install

- name: Install dependencies (backend)
working-directory: backend
run: npm install

- name: Run Jest tests
working-directory: backend
run: npm run test:ci

0 comments on commit aaa7899

Please sign in to comment.