diff --git a/.github/workflows/game.yml b/.github/workflows/game.yml new file mode 100644 index 0000000..0d2dafa --- /dev/null +++ b/.github/workflows/game.yml @@ -0,0 +1,37 @@ +name: Game +on: + pull_request: + paths: + - game/** + - .github/workflows/game.yml + push: + branches: [main] + paths: + - game/** + - .github/workflows/game.yml +permissions: + contents: read +concurrency: + group: game-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true +jobs: + game: + runs-on: ubuntu-latest + timeout-minutes: 10 + defaults: + run: + working-directory: game + steps: + - uses: actions/checkout@v7 + - uses: actions/setup-python@v5 + with: + python-version: '3.13' + - uses: actions/setup-node@v7 + with: + node-version: '22' + cache: npm + cache-dependency-path: game/package-lock.json + - run: npm ci + - run: npm run typecheck + - run: npm test + - run: npm run build