From dc188a60ddbd6d72b66b098224f773d0db1556d3 Mon Sep 17 00:00:00 2001 From: zhangtao25 Date: Mon, 18 Nov 2024 20:04:02 +0800 Subject: [PATCH] chore: repo overall update --- .../upload-canyon-report-coverage-map.yml | 31 +++++++++---------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/.github/workflows/upload-canyon-report-coverage-map.yml b/.github/workflows/upload-canyon-report-coverage-map.yml index 8e25633c..2e621816 100644 --- a/.github/workflows/upload-canyon-report-coverage-map.yml +++ b/.github/workflows/upload-canyon-report-coverage-map.yml @@ -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