-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue #5343: [Bug]: Frontend changes cause Python unit tests work…
…flow to fail but not frontend workflow
- Loading branch information
1 parent
afc94a2
commit 7ec381d
Showing
3 changed files
with
70 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Lint Frontend | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'frontend/**' | ||
- '.github/workflows/frontend-lint.yml' | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'frontend/**' | ||
- '.github/workflows/frontend-lint.yml' | ||
|
||
jobs: | ||
lint: | ||
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 ESLint and Prettier | ||
run: cd frontend && npm run lint |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
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 |
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