mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-01 05:49:54 +00:00
78 lines
2.4 KiB
YAML
78 lines
2.4 KiB
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@v2.2
|
|
with:
|
|
devtools_ref: 7b81139e904519db8e5481899ef36bbb4393cb6b
|
|
- name: Run Jest tests
|
|
run: |
|
|
npm run test:generate
|
|
npm run test:jest -- --verbose
|
|
working-directory: ComfyUI_frontend
|
|
|
|
playwright-tests-chromium:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: Comfy-Org/ComfyUI_frontend_setup_action@v2.2
|
|
with:
|
|
devtools_ref: 7b81139e904519db8e5481899ef36bbb4393cb6b
|
|
- name: Install Playwright Browsers
|
|
run: npx playwright install chromium --with-deps
|
|
working-directory: ComfyUI_frontend
|
|
- name: Run Playwright tests (Chromium)
|
|
run: npx playwright test --project=chromium
|
|
working-directory: ComfyUI_frontend
|
|
- uses: actions/upload-artifact@v4
|
|
if: always()
|
|
with:
|
|
name: playwright-report-chromium
|
|
path: ComfyUI_frontend/playwright-report/
|
|
retention-days: 30
|
|
|
|
playwright-tests-chromium-2x:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: Comfy-Org/ComfyUI_frontend_setup_action@v2.2
|
|
with:
|
|
devtools_ref: 7b81139e904519db8e5481899ef36bbb4393cb6b
|
|
- name: Install Playwright Browsers
|
|
run: npx playwright install chromium --with-deps
|
|
working-directory: ComfyUI_frontend
|
|
- name: Run Playwright tests (Chromium 2x)
|
|
run: npx playwright test --project=chromium-2x
|
|
working-directory: ComfyUI_frontend
|
|
- uses: actions/upload-artifact@v4
|
|
if: always()
|
|
with:
|
|
name: playwright-report-chromium-2x
|
|
path: ComfyUI_frontend/playwright-report/
|
|
retention-days: 30
|
|
|
|
playwright-tests-mobile-chrome:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: Comfy-Org/ComfyUI_frontend_setup_action@v2.2
|
|
with:
|
|
devtools_ref: 7b81139e904519db8e5481899ef36bbb4393cb6b
|
|
- name: Install Playwright Browsers
|
|
run: npx playwright install chromium --with-deps
|
|
working-directory: ComfyUI_frontend
|
|
- name: Run Playwright tests (Mobile Chrome)
|
|
run: npx playwright test --project=mobile-chrome
|
|
working-directory: ComfyUI_frontend
|
|
- uses: actions/upload-artifact@v4
|
|
if: always()
|
|
with:
|
|
name: playwright-report-mobile-chrome
|
|
path: ComfyUI_frontend/playwright-report/
|
|
retention-days: 30
|