Skip to content

πŸ™Œ OpenHands: AI-Driven Development

fix: Update frontend workflows to catch TypeScript errors (#5347)

Graham Neubig5672a317acbd
diff --git a/.github/workflows/fe-unit-tests.yml b/.github/workflows/fe-unit-tests.yml
index 2bced7406e..b720bfe34c 100644
--- a/.github/workflows/fe-unit-tests.yml
+++ b/.github/workflows/fe-unit-tests.yml
@@ -35,6 +35,9 @@ jobs:
- name: Install dependencies
working-directory: ./frontend
run: npm ci
+ - name: Run TypeScript compilation
+ working-directory: ./frontend
+ run: npm run make-i18n && tsc
- name: Run tests and collect coverage
working-directory: ./frontend
run: npm run test:coverage
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index b6a9d327d8..1bfc8c91c6 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -30,10 +30,11 @@ jobs:
run: |
cd frontend
npm install --frozen-lockfile
- - name: Lint
+ - name: Lint and TypeScript compilation
run: |
cd frontend
npm run lint
+ npm run make-i18n && tsc
# Run lint on the python code
lint-python: