Skip to content

Commit df5874e

Browse files
author
AI Assistant
committed
Resolve merge conflicts
2 parents 264a90f + 95e8173 commit df5874e

209 files changed

Lines changed: 26777 additions & 558 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,22 @@ jobs:
5555
run: |
5656
npx prisma generate
5757
npx prisma migrate deploy || true
58+
- name: Test Migration Rollbacks
59+
working-directory: ./backend
60+
env:
61+
DATABASE_URL: postgresql://test:test@localhost:5432/test_db
62+
run: npm run test:migrations
5863
- name: Run tests
5964
working-directory: ./backend
6065
env:
6166
NODE_ENV: test
6267
DATABASE_URL: postgresql://test:test@localhost:5432/test_db
6368
REDIS_URL: redis://localhost:6379
6469
JWT_SECRET: test-jwt-secret
70+
GITHUB_CLIENT_ID: test-github-client-id
71+
GITHUB_CLIENT_SECRET: test-github-client-secret
72+
GITHUB_REDIRECT_URI: http://localhost:8080/api/v1/oauth/github/callback
73+
FRONTEND_URL: http://localhost:3000
6574
run: npm run test:coverage || true
6675

6776
frontend:
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Mentor Booking Feature Checks
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'frontend/src/lib/mentor-booking.ts'
7+
- 'frontend/src/lib/__tests__/mentor-booking.test.ts'
8+
- '.github/workflows/mentor-booking.yml'
9+
push:
10+
branches: [main, master]
11+
paths:
12+
- 'frontend/src/lib/mentor-booking.ts'
13+
- 'frontend/src/lib/__tests__/mentor-booking.test.ts'
14+
- '.github/workflows/mentor-booking.yml'
15+
16+
jobs:
17+
mentor-booking:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
- uses: pnpm/action-setup@v4
22+
with:
23+
version: 10.33.0
24+
- uses: actions/setup-node@v4
25+
with:
26+
node-version: 20
27+
cache: pnpm
28+
cache-dependency-path: frontend/pnpm-lock.yaml
29+
- name: Install frontend dependencies
30+
working-directory: frontend
31+
run: pnpm install --frozen-lockfile
32+
- name: Run mentor booking tests
33+
working-directory: frontend
34+
run: pnpm exec vitest run src/lib/__tests__/mentor-booking.test.ts

0 commit comments

Comments
 (0)