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
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,6 @@ jobs:

- name: Build
run: npm run build

- name: Test
run: npm test
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,23 @@ npm test
npm test --filter=@oracle-stocks/shared
```

## πŸ₯ CI / Repo Health

Before pushing, verify that the full CI pipeline passes locally:

```bash
npm ci && npm run lint && npm run check-types && npm run build && npm test
```

| Command | What it does |
|----------------------|---------------------------------------------------|
| `npm run lint` | Runs ESLint across all workspaces via Turborepo |
| `npm run check-types`| Runs `tsc --noEmit` in all TypeScript workspaces |
| `npm run build` | Builds all apps and packages via Turborepo |
| `npm test` | Runs Jest tests in all workspaces |

CI runs these same steps automatically on every push and PR to `main` and `develop`.

## πŸ“„ License

MIT License
8 changes: 4 additions & 4 deletions apps/aggregator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"lint": "eslint \"src/**/*.ts\"",
"test": "jest",
"test:watch": "jest --watch",
"test:cov": "jest --coverage"
"test:cov": "jest --coverage",
"check-types": "tsc --noEmit"
},
"dependencies": {
"@nestjs/axios": "^4.0.1",
Expand All @@ -21,12 +22,11 @@
"@nestjs/core": "^10.0.0",
"@nestjs/event-emitter": "^3.0.1",
"@nestjs/platform-express": "^10.0.0",
"@oracle-stocks/shared": "*",
"@nestjs/terminus": "^10.0.0",
"axios": "^1.6.0",
"@oracle-stocks/shared": "*",
"axios": "^1.13.4",
"ioredis": "^5.3.2",
"prom-client": "^15.1.0",
"axios": "^1.13.4",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.3",
"reflect-metadata": "^0.1.13",
Expand Down
3 changes: 3 additions & 0 deletions apps/aggregator/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ import { TrimmedMeanAggregator } from './strategies/aggregators/trimmed-mean.agg
import { HealthModule } from './health/health.module';
import { MetricsModule } from './metrics/metrics.module';
import { DebugModule } from './debug/debug.module';
import { HttpModule } from '@nestjs/axios';
import { EventEmitterModule } from '@nestjs/event-emitter';
import { DataReceptionService } from './services/data-reception.service';

@Module({
imports: [
Expand Down
2 changes: 1 addition & 1 deletion apps/aggregator/src/services/aggregation.service.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Injectable, Logger, Optional, Inject } from '@nestjs/common';
import { Injectable, Logger, Optional } from '@nestjs/common';
import { NormalizedPrice } from '../interfaces/normalized-price.interface';
import { AggregatedPrice } from '../interfaces/aggregated-price.interface';
import { IAggregator } from '../interfaces/aggregator.interface';
Expand Down
3 changes: 2 additions & 1 deletion apps/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"lint": "eslint \"src/**/*.ts\"",
"test": "jest",
"test:watch": "jest --watch",
"test:cov": "jest --coverage"
"test:cov": "jest --coverage",
"check-types": "tsc --noEmit"
},
"dependencies": {
"@nestjs/common": "^10.0.0",
Expand Down
1 change: 1 addition & 0 deletions apps/frontend/jest.setup.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import '@testing-library/jest-dom';
3 changes: 2 additions & 1 deletion apps/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"start": "next start",
"lint": "next lint",
"test": "jest",
"test:watch": "jest --watch"
"test:watch": "jest --watch",
"check-types": "tsc --noEmit"
},
"dependencies": {
"next": "^14.0.0",
Expand Down
6 changes: 3 additions & 3 deletions apps/ingestor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@
"test": "jest",
"test:watch": "jest --watch",
"dev": "nest start --watch",
"test:cov": "jest --coverage"
"test:cov": "jest --coverage",
"check-types": "tsc --noEmit"
},
"dependencies": {
"@oracle-stocks/shared": "*",
"@nestjs/common": "^10.0.0",
"@nestjs/config": "^3.0.0",
"@nestjs/core": "^10.0.0",
"@nestjs/platform-express": "^10.0.0",
"@nestjs/schedule": "^4.0.0",
"@oracle-stocks/shared": "*",
"reflect-metadata": "^0.1.13",
"@oracle-stocks/shared": "file:../../packages/shared",
"rxjs": "^7.8.1"
},
"devDependencies": {
Expand Down
3 changes: 2 additions & 1 deletion apps/ingestor/src/modules/prices.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import { Module } from '@nestjs/common';
import { PricesController } from '../controllers/prices.controller';
import { PriceFetcherService } from '../services/price-fetcher.service';
import { StockService } from '../services/stock.service';
import { FinnhubAdapter } from '../providers/finnhub.adapter';
import { FinnhubAdapter } from '../providers/finnhub.adapter';
import { SchedulerService } from '../services/scheduler.service';

@Module({
controllers: [PricesController],
Expand Down
3 changes: 2 additions & 1 deletion apps/transactor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"lint": "eslint \"src/**/*.ts\"",
"test": "jest",
"test:watch": "jest --watch",
"test:cov": "jest --coverage"
"test:cov": "jest --coverage",
"check-types": "tsc --noEmit"
},
"dependencies": {
"@nestjs/common": "^10.0.0",
Expand Down
Loading