Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/collab.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Collaboration Service CI

on:
push:
branches:
- main
paths:
- "backend/collaboration-service/**"
pull_request:
branches:
- main
paths:
- "backend/collaboration-service/**"

jobs:
run-tests:
runs-on: ubuntu-latest

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

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "18.x"

- name: Install dependencies
run: npm ci
working-directory: backend/collaboration-service

- name: Run Tests
run: npm test
working-directory: backend/collaboration-service
34 changes: 34 additions & 0 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Frontend CI

on:
push:
branches:
- main
paths:
- "frontend/**"
pull_request:
branches:
- main
paths:
- "frontend/**"

jobs:
run-eslint:
runs-on: ubuntu-latest

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

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "18.x"

- name: Install dependencies
run: npm ci
working-directory: frontend

- name: Run ESLint
run: npm run lint
working-directory: frontend
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { createSession, handleMatchNotification } from '../../controllers/collab
import Session from '../../models/Session';
import { producer } from '../../utils/kafkaClient';
import { EachMessagePayload, KafkaMessage } from 'kafkajs';


// Mock the kafka producer
jest.mock('../../utils/kafkaClient', () => ({
Expand Down
Loading
Loading