mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-26 17:54:14 +00:00
chore: refresh docs pages publishing flow
This commit is contained in:
17
.github/workflows/vitest-tests.yaml
vendored
17
.github/workflows/vitest-tests.yaml
vendored
@@ -46,3 +46,20 @@ jobs:
|
||||
|
||||
- name: Run Vitest tests
|
||||
run: pnpm test:unit
|
||||
|
||||
- name: Generate test reports (on main branch)
|
||||
if: github.ref == 'refs/heads/main'
|
||||
run: |
|
||||
mkdir -p ./vitest-reports
|
||||
pnpm exec vitest \
|
||||
--reporter=json --outputFile.json="./vitest-reports/results.json" \
|
||||
--reporter=html --outputFile.html="./vitest-reports/index.html" \
|
||||
--run
|
||||
|
||||
- name: Upload Vitest reports artifact (on main branch)
|
||||
if: github.ref == 'refs/heads/main'
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: vitest-reports
|
||||
path: vitest-reports/
|
||||
retention-days: 7
|
||||
|
||||
Reference in New Issue
Block a user