Skip to content

Commit

Permalink
chore: repo overall update
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangtao25 committed Nov 18, 2024
1 parent 7e7ac6c commit dc188a6
Showing 1 changed file with 14 additions and 17 deletions.
31 changes: 14 additions & 17 deletions .github/workflows/upload-canyon-report-coverage-map.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,17 @@ jobs:
- name: Build Vite project
run: pnpm run build:report

# 上传测试覆盖率报告到packages/canyon-report下
- name: Upload coverage report
run: cd packages/canyon-report && npm install canyon-uploader -g && canyon-uploader map --dsn=https://collect.canyonjs.org/coverage/map/client

- name: Run Playwright Tests
run: cd packages/canyon-report && npx playwright install && npx playwright test



# 保存构建结果到工作空间
# - name: Upload build artifact
# uses: actions/upload-artifact@v3
# with:
# name: build-output
# path: dist/ # 根据 Vite 的默认输出目录

# 如果需要部署,可以添加一个部署步骤,例如使用 GitHub Pages 或其他服务
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: npm i -g pnpm && pnpm install
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test

0 comments on commit dc188a6

Please sign in to comment.