Fix issue #5343: [Bug]: Frontend changes cause Python unit tests workflow to fail but not frontend workflow #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |