name: CI on: push: pull_request: jobs: build-test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: "20" cache: "npm" - run: npm ci # battle-core 先編譯(server/web 透過 dist 取用),再型別檢查 + 全測試(含 09 黃金測試) - run: npm run build -w @wcg/battle-core - run: npm run typecheck - run: npm test