Skip to content

Commit 8161dc3

Browse files
update in codebase
1 parent 714f67b commit 8161dc3

60 files changed

Lines changed: 2355 additions & 1423 deletions

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: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main, develop]
6+
pull_request:
7+
branches: [main, develop]
8+
9+
jobs:
10+
lint-and-test:
11+
name: Lint & Test
12+
runs-on: ubuntu-latest
13+
14+
services:
15+
mongodb:
16+
image: mongo:7
17+
ports:
18+
- 27017:27017
19+
options: >-
20+
--health-cmd "mongosh --eval \"db.adminCommand('ping')\""
21+
--health-interval 10s
22+
--health-timeout 5s
23+
--health-retries 5
24+
25+
redis:
26+
image: redis:7-alpine
27+
ports:
28+
- 6379:6379
29+
options: >-
30+
--health-cmd "redis-cli ping"
31+
--health-interval 10s
32+
--health-timeout 5s
33+
--health-retries 5
34+
35+
steps:
36+
- name: Checkout
37+
uses: actions/checkout@v4
38+
39+
- name: Setup Node.js
40+
uses: actions/setup-node@v4
41+
with:
42+
node-version: '20'
43+
cache: 'npm'
44+
45+
- name: Install dependencies
46+
run: npm ci
47+
48+
- name: Lint
49+
run: npm run lint
50+
51+
- name: Run tests
52+
run: npm run test:run
53+
env:
54+
NODE_ENV: test
55+
MONGO_URI: mongodb://localhost:27017/lexai_test
56+
REDIS_HOST: localhost
57+
REDIS_PORT: 6379
58+
REDIS_PASSWORD: ''
59+
PASETO_LOCAL_SECRET: test-secret-that-is-at-least-32-characters-long
60+
PASETO_ACCESS_EXPIRY: 15m
61+
PASETO_REFRESH_EXPIRY: 7d
62+
PASETO_REFRESH_COOKIE_MAX_AGE_MS: 604800000
63+
RABBITMQ_URL: amqp://guest:guest@localhost:5672
64+
ANALYSIS_QUEUE: lexai.analysis.queue
65+
ALERT_QUEUE: lexai.alert.queue
66+
DLX_EXCHANGE: lexai.dlx
67+
OPENROUTER_API_KEY: test-key
68+
OPENROUTER_BASE_URL: https://openrouter.ai/api/v1
69+
AI_PRIMARY_MODEL: meta-llama/llama-3.1-8b-instruct:free
70+
AI_FALLBACK_MODEL: mistralai/mistral-7b-instruct:free
71+
72+
- name: Upload coverage
73+
uses: actions/upload-artifact@v4
74+
if: always()
75+
with:
76+
name: coverage-report
77+
path: coverage/
78+
79+
docker-build:
80+
name: Docker Build Check
81+
runs-on: ubuntu-latest
82+
needs: lint-and-test
83+
84+
steps:
85+
- name: Checkout
86+
uses: actions/checkout@v4
87+
88+
- name: Build API image
89+
run: docker build --target production -f Dockerfile .
90+
91+
- name: Build Worker image
92+
run: docker build --target production -f Dockerfile.worker .

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npm run lint

.kiro/specs/codebase-auditor-esm-fix/.config.kiro

Lines changed: 0 additions & 1 deletion
This file was deleted.

.kiro/specs/codebase-auditor-esm-fix/bugfix.md

Lines changed: 0 additions & 96 deletions
This file was deleted.

0 commit comments

Comments
 (0)