mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-05 23:50:08 +00:00
* Split jest unit test and playwright test into different actions * Use composite action * Add tag v1
42 lines
974 B
YAML
42 lines
974 B
YAML
name: Tests CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- master
|
|
- 'dev*'
|
|
|
|
jobs:
|
|
jest-tests:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: Comfy-Org/ComfyUI_frontend_setup_action@v1
|
|
- name: Run Jest tests
|
|
run: |
|
|
npm run test:generate
|
|
npm run test:generate:examples
|
|
npm test -- --verbose
|
|
working-directory: ComfyUI_frontend
|
|
|
|
playwright-tests:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: Comfy-Org/ComfyUI_frontend_setup_action@v1
|
|
- name: Install Playwright Browsers
|
|
run: npx playwright install chromium --with-deps
|
|
working-directory: ComfyUI_frontend
|
|
- name: Run Playwright tests
|
|
run: npx playwright test
|
|
working-directory: ComfyUI_frontend
|
|
- uses: actions/upload-artifact@v4
|
|
if: always()
|
|
with:
|
|
name: playwright-report
|
|
path: ComfyUI_frontend/playwright-report/
|
|
retention-days: 30
|