ci: 完善项目持续集成配置并添加 Playwright 测试
This commit is contained in:
23
.github/workflows/playwright.yaml
vendored
Normal file
23
.github/workflows/playwright.yaml
vendored
Normal 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
|
Reference in New Issue
Block a user