chore: 版本升级 #113
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |