Skip to content

OpenRAG is a comprehensive, single package Retrieval-Augmented Generation platform built on Langflow, Docling, and Opensearch.

Python

chore: Add TypeScript typecheck CI job (#1616)

Edwin Josee2e348e2c8b1
diff --git a/.github/workflows/lint-frontend.yml b/.github/workflows/lint-frontend.yml
index 01711d630..0e7a9d70c 100644
--- a/.github/workflows/lint-frontend.yml
+++ b/.github/workflows/lint-frontend.yml
@@ -27,3 +27,24 @@ jobs:
- name: Biome check
working-directory: frontend
run: npm run lint
+
+ typecheck:
+ name: TypeScript type check
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Set up Node.js
+ uses: actions/setup-node@v4
+ with:
+ node-version: '20'
+ cache: 'npm'
+ cache-dependency-path: frontend/package-lock.json
+
+ - name: Install dependencies
+ working-directory: frontend
+ run: npm ci
+
+ - name: TypeScript type check
+ working-directory: frontend
+ run: npm run typecheck
diff --git a/frontend/package.json b/frontend/package.json
index 7f200bdeb..1416c9469 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -10,6 +10,7 @@
"build": "next build",
"start": "next start",
"lint": "biome check .",
+ "typecheck": "tsc --noEmit",
"lint:fix": "biome check --write",
"format": "biome format --write",
"knip": "knip",