Skip to content

Commit

Permalink
Merge branch 'main' of github.com:coding-bootcamps-eu/suryia
Browse files Browse the repository at this point in the history
  • Loading branch information
jipsonminibhavan committed Jan 25, 2024
2 parents bdf4297 + 13be1ab commit 9a5f25a
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion .github/workflows/full-stack-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on: [push]
jobs:
build:
runs-on: ubuntu-latest
env:
MONGODB_URI: mongodb://localhost:42069/suryia
strategy:
matrix:
node-version: [18.17]
Expand Down Expand Up @@ -36,8 +38,35 @@ jobs:
cd backend
npm run build
- name: Initialize Database
run: |
cd backend
npm run initialize-db
- name: Start API
run: |
cd backend
npm start
npm start &
# Frontend
- name: Install Frontend Dependencies
run: |
cd frontend
npm install
- name: Build Frontend (if necessary)
run: |
cd frontend
npm run build
- name: Start Frontend in Background
run: |
cd frontend
npm run preview &
# E2E Tests
- name: Run E2E tests
run: |
cd frontend
npm run test:e2e

0 comments on commit 9a5f25a

Please sign in to comment.