chore: refresh docs pages publishing flow

This commit is contained in:
snomiao
2025-10-14 03:58:38 +00:00
parent cd714151fd
commit 807a395b29
10 changed files with 485 additions and 194 deletions

View File

@@ -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