Skip to content

Commit e2e093c

Browse files
committed
updated ci only for frontend now
1 parent 83054c4 commit e2e093c

1 file changed

Lines changed: 4 additions & 33 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -7,49 +7,20 @@ on:
77
branches: [ main ]
88

99
jobs:
10-
backend-tests:
11-
runs-on: ubuntu-latest
12-
services:
13-
mongodb:
14-
image: mongo:latest
15-
ports:
16-
- 27017:27017
17-
steps:
18-
- uses: actions/checkout@v4
19-
- name: Setup Node.js
20-
uses: actions/setup-node@v4
21-
with:
22-
node-version: '20'
23-
cache: 'npm'
24-
cache-dependency-path: backend/package-lock.json
25-
26-
- name: Install Dependencies
27-
run: cd backend && npm install
28-
29-
- name: Run Jest Tests
30-
run: cd backend && npm test
31-
env:
32-
NODE_ENV: test
33-
RESEND_API_KEY: ${{ secrets.RESEND_API_KEY }}
34-
TEST_MONGO_URL: mongodb://localhost:27017/test_db
35-
JWT_SECRET: ${{ secrets.JWT_SECRET }}
36-
SUPABASE_URL: "https://dummy.supabase.co"
37-
SUPABASE_KEY: "dummy-key"
38-
REDIS_URL: "dummy-redis"
39-
4010
frontend-lint:
4111
runs-on: ubuntu-latest
4212
steps:
4313
- uses: actions/checkout@v4
14+
4415
- name: Setup Node.js
4516
uses: actions/setup-node@v4
4617
with:
4718
node-version: '20'
4819
cache: 'npm'
49-
cache-dependency-path: frontend/package-lock.json
20+
cache-dependency-path: package-lock.json
5021

5122
- name: Install Dependencies
52-
run: cd frontend && npm install
23+
run: npm ci
5324

5425
- name: Run Linting
55-
run: cd frontend && npm run lint
26+
run: npm run lint --workspace=web-dashboard

0 commit comments

Comments
 (0)