Skip to content

Commit

Permalink
Split jest unit test and playwright test into different actions
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei committed Sep 12, 2024
1 parent 80ca180 commit ad9ad48
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/test-ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
- 'dev*'

jobs:
test:
setup:
runs-on: ubuntu-latest
steps:
- name: Checkout ComfyUI
Expand Down Expand Up @@ -71,12 +71,22 @@ jobs:
python main.py --cpu &
wait-for-it --service 127.0.0.1:8188 -t 600
working-directory: ComfyUI
- name: Run UI tests

jest-tests:
needs: setup
runs-on: ubuntu-latest
steps:
- name: Run Jest tests
run: |
npm run test:generate
npm run test:generate:examples
npm test -- --verbose
working-directory: ComfyUI_frontend

playwright-tests:
needs: setup
runs-on: ubuntu-latest
steps:
- name: Install Playwright Browsers
run: npx playwright install chromium --with-deps
working-directory: ComfyUI_frontend
Expand Down

0 comments on commit ad9ad48

Please sign in to comment.