Skip to content

Commit 2198396

Browse files
committed
Add gh actions for collab service
1 parent 2ffd2ff commit 2198396

File tree

4 files changed

+4943
-901
lines changed

4 files changed

+4943
-901
lines changed

.github/workflows/collab.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Collaboration Service CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- "backend/collaboration-service/**"
9+
10+
jobs:
11+
runtests:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v3
17+
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: "18.x"
22+
23+
- name: Install dependencies
24+
run: npm ci
25+
working-directory: backend/collaboration-service
26+
27+
- name: Run Tests
28+
run: npm test
29+
working-directory: backend/collaboration-service

backend/collaboration-service/__tests__/controllers/collaborationController.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { createSession, handleMatchNotification } from '../../controllers/collab
55
import Session from '../../models/Session';
66
import { producer } from '../../utils/kafkaClient';
77
import { EachMessagePayload, KafkaMessage } from 'kafkajs';
8+
89

910
// Mock the kafka producer
1011
jest.mock('../../utils/kafkaClient', () => ({

0 commit comments

Comments
 (0)