Skip to content

fix: 修复 dialog 的 全局状态管理问题 #107

fix: 修复 dialog 的 全局状态管理问题

fix: 修复 dialog 的 全局状态管理问题 #107

name: "Storybook Tests"
on:
push:
branches:
- story
pull_request:
branches:
- story
jobs:
test:
timeout-minutes: 10
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: pnpm/action-setup@v2
with:
version: 9.0.5
- uses: actions/setup-node@v4
with:
node-version: 18.13.0
cache: 'pnpm'
- name: Install dependencies
run: pnpm i concurrently http-server wait-on playwright -g
- name: pnpm install
run: pnpm i --no-frozen-lockfile
- name: Build Storybook
run: pnpm build:test --quiet
- name: Serve Storybook and run tests
run: |
pnpx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \
"pnpm preview" \
"pnpx wait-on http:https://0.0.0.0:6006 && pnpm test"