Skip to content

Fix issue #5343: [Bug]: Frontend changes cause Python unit tests workflow to fail but not frontend workflow #1

Fix issue #5343: [Bug]: Frontend changes cause Python unit tests workflow to fail but not frontend workflow

Fix issue #5343: [Bug]: Frontend changes cause Python unit tests workflow to fail but not frontend workflow #1

Workflow file for this run

name: Frontend Tests
on:
pull_request:
paths:
- 'frontend/**'
- '.github/workflows/frontend-test.yml'
push:
branches:
- main
paths:
- 'frontend/**'
- '.github/workflows/frontend-test.yml'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: frontend/package-lock.json
- name: Install dependencies
run: cd frontend && npm ci
- name: Run TypeScript type checking
run: cd frontend && npx tsc --noEmit
- name: Run tests
run: cd frontend && npm run test