更新 CI 工作流以使用新的容器,修改 Playwright 基础 URL,增强测试用例以附加截图和日志
Some checks failed
/ depcheck (push) Successful in 1m34s
/ build-and-deploy-to-vercel (push) Successful in 1m38s
/ playwright (push) Failing after 1m11s

This commit is contained in:
严浩
2024-10-12 12:48:36 +08:00
parent 90002352b5
commit 229e167525
3 changed files with 12 additions and 4 deletions

View File

@ -29,14 +29,16 @@ jobs:
- name: 部署到 Vercel
run: pnpm exec vercel deploy --prebuilt --target=production --token=${{ secrets.VERCEL_TOKEN }}
playwright:
playwright: # act --job playwright --workflows .github/workflows/ci.yaml --pull=false --dryrun
runs-on: ubuntu-latest
container: yanhao98/runner-images:pnpm-with-playwright
steps:
- uses: yanhao98/composite-actions/setup-node-environment@main
- run: pnpm run build-only
env:
VITE_BUILD_COMMIT: ${{ github.sha }}
- name: 部署到 Surge
if: ${{ !env.ACT }} # https://nektosact.com/usage/index.html#skipping-steps
id: surge_deploy
# pnpm exec surge token / pnpx surge token
# https://github.com/Tencent/tdesign-vue-next/pull/1604#issuecomment-1236244550