開発環境とテストではwandboxの簡易セルフホスト版を使う #75
Workflow file for this run
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: Runtime Tests CI | |
| on: | |
| pull_request: | |
| paths: | |
| - 'packages/runtime/**' | |
| - '.github/workflows/runtime-tests.yml' | |
| jobs: | |
| test-runtime: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [22.x] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v6 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'pnpm' | |
| - run: pnpm install --frozen-lockfile | |
| - name: Install Boost | |
| run: sudo apt-get update && sudo apt-get install -y libboost-dev | |
| - name: Start unsandbox | |
| run: | | |
| pnpm exec unsandbox --port 3055 & | |
| for i in {1..30}; do | |
| if curl -s http://localhost:3055/api/list.json > /dev/null; then | |
| echo "unsandbox is ready" | |
| break | |
| fi | |
| echo "Waiting for unsandbox..." | |
| sleep 1 | |
| done | |
| - name: Run runtime tests | |
| env: | |
| WANDBOX_URL: http://localhost:3055 | |
| run: pnpm run --filter @my-code/runtime test |