test: SongTrackRenderer の unit test の時間切れを防ぐ #2834
This file contains hidden or 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: "Build Preview Pages" | |
| # プレビュー用ページをビルドする。 | |
| # 詳細: https://github.com/voicevox/preview-pages?tab=readme-ov-file#%E4%BB%95%E7%B5%84%E3%81%BF | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - project-* | |
| pull_request: | |
| jobs: | |
| # このJobの名前を変更したときは、voicevox/preview-pages側のscripts/collect.tsも変更すること。 | |
| build_preview_pages: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| - name: Setup environment | |
| uses: ./.github/actions/setup-environment | |
| - name: Build | |
| run: | | |
| # 追加のバージョン情報 | |
| if [ -n "${{ github.event.pull_request.head.sha }}" ]; then | |
| LOCATION="PR#${{ github.event.pull_request.number }}" | |
| SHORT_SHA=$(cut -c 1-7 <<< "${{ github.event.pull_request.head.sha }}") | |
| else | |
| LOCATION="${{ github.ref_name }}" | |
| SHORT_SHA=$(cut -c 1-7 <<< "${{ github.sha }}") | |
| fi | |
| # Storybookのビルド | |
| pnpm run storybook:build --output-dir $(pwd)/dist_preview/storybook | |
| # ブラウザ版エディタのビルド | |
| VITE_EXTRA_VERSION_INFO="${LOCATION} @ ${SHORT_SHA}" \ | |
| pnpm run browser:build --base ./ --outDir $(pwd)/dist_preview/editor | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | |
| with: | |
| name: preview-pages | |
| path: dist_preview |