feat: project state per player so hands stay private #116
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| typecheck-build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: "1.2.19" | |
| - uses: actions/cache@v4 | |
| with: | |
| path: ~/.bun/install/cache | |
| key: bun-${{ hashFiles('bun.lock') }} | |
| restore-keys: bun- | |
| - run: bun install --frozen-lockfile | |
| - run: bun run typecheck | |
| - run: bun run build:client | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| package: [shared, schema, host] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: "1.2.19" | |
| - uses: actions/cache@v4 | |
| with: | |
| path: ~/.bun/install/cache | |
| key: bun-${{ hashFiles('bun.lock') }} | |
| restore-keys: bun- | |
| - run: bun install --frozen-lockfile | |
| - name: Test ${{ matrix.package }} | |
| run: bunx vitest run | |
| working-directory: packages/${{ matrix.package }} | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: "1.2.19" | |
| - uses: actions/cache@v4 | |
| with: | |
| path: ~/.bun/install/cache | |
| key: bun-${{ hashFiles('bun.lock') }} | |
| restore-keys: bun- | |
| - run: bun install --frozen-lockfile | |
| - run: bun run validate |