ci: 完善项目持续集成配置并添加 Playwright 测试

This commit is contained in:
严浩
2025-09-09 15:36:24 +08:00
parent 7c04f69d1a
commit 706c60ddb8
11 changed files with 1173 additions and 212 deletions

23
.github/workflows/playwright.yaml vendored Normal file
View File

@@ -0,0 +1,23 @@
defaults:
run:
shell: bash
env:
TZ: Asia/Shanghai
on:
push:
workflow_dispatch:
jobs:
playwright:
runs-on: ubuntu-latest
container: mcr.microsoft.com/playwright:v1.55.0-noble
steps:
- name: ⚙️ 设置 Node 环境
uses: yanhao98/composite-actions/setup-node-environment@25eb4dc0c134cc9df2b7c569aa54140a366b45a8
# - name: 📥 安装 Playwright 浏览器
# run: pnpm exec playwright install --with-deps
- name: ▶️ 运行 Playwright 测试
run: |
npx playwright test