27 lines
676 B
YAML
27 lines
676 B
YAML
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: 🔄 更新依赖
|
|
run: pnpm update --latest
|
|
- name: 📦 构建项目
|
|
run: pnpm run build-only
|
|
- name: ▶️ 运行 Playwright 测试
|
|
run: pnpm exec playwright test
|