Skip to content

Commit

Permalink
Fix unit tests GH actions yml
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminJohnson2204 committed Feb 15, 2024
1 parent 10c52bd commit 45cab02
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Run frontend & backend unit tests
on:
pull_request:
branches:
branches:
- main
jobs:
backend:
Expand All @@ -12,12 +12,11 @@ jobs:
- uses: actions/setup-node@v3
- name: Run tests
working-directory: backend
env:
CI: true
run: |
npm ci
npm run test
env:
CI: true
PORT: ${{ secrets.PORT }}
MONGODB_URI: ${{ secrets.MONGODB_URI }}
FRONTEND_ORIGIN: ${{ secrets.FRONTEND_ORIGIN }}
Expand All @@ -35,11 +34,10 @@ jobs:
- uses: actions/setup-node@v3
- name: Run tests
working-directory: frontend
env:
CI: true
run: |
npm ci
npm run test
env:
CI: true
NEXT_PUBLIC_BACKEND_URL: ${{ secrets.NEXT_PUBLIC_BACKEND_URL }}
NEXT_PUBLIC_FIREBASE_SETTINGS: ${{ secrets.NEXT_PUBLIC_FIREBASE_SETTINGS }}

0 comments on commit 45cab02

Please sign in to comment.