Skip to content

Polish MFD command center UI and Chip dock #194

Polish MFD command center UI and Chip dock

Polish MFD command center UI and Chip dock #194

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm typecheck
- run: pnpm test
- run: pnpm build
env:
# Match production deploy: Chip features must be live in the build the
# smoke test loads, otherwise CI verifies a different artifact than ships.
VITE_CHIP_ENABLED: 'true'
- name: Engine bundle size gate
run: bash scripts/check-bundle-size.sh
- name: Built-page smoke test
run: bash scripts/smoke-test-built-page.sh
determinism-gate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- run: pnpm install --frozen-lockfile
- name: Math.random() lint ban
run: bash scripts/check-math-random.sh
- name: Save migration audit
run: |
SAVE_VERSION=$(grep -E 'export const SAVE_VERSION' packages/engine/src/config/difficulty.ts | grep -oE '[0-9]+')
echo "SAVE_VERSION: $SAVE_VERSION"
if [ -z "$SAVE_VERSION" ]; then
echo "FAIL: Could not read SAVE_VERSION from difficulty.ts" >&2
exit 1
fi
echo "Save version $SAVE_VERSION detected. Migration chain tested via golden-saves.test.ts in test job."