Regenerated pnpm-lock.yaml online so it matches the manifests (it was missing typescript@^5.8.3 and @types/node) — `pnpm install --frozen-lockfile` now passes, which is exactly what Cloudflare runs (ERR_PNPM_OUTDATED_LOCKFILE gone). Regenerating resolved typescript 5.9.3 (from 5.8.x), which surfaced TS2488 in world-viewer: iterating a NodeListOf now needs DOM.Iterable in `lib`. Added it to packages/world-viewer/tsconfig.json. Full workspace build + typecheck + test are green under the new toolchain. Restored --frozen-lockfile in pr.yml/deploy-site.yml (the lock is correct now). Cloudflare: set the build command to `pnpm run build:site`; deploy stays `npx wrangler deploy`.
51 lines
1.2 KiB
YAML
51 lines
1.2 KiB
YAML
name: Pull request checks
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: [main]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: pr-${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
rust:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
CARGO_NET_OFFLINE: "false"
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: dtolnay/rust-toolchain@master
|
|
with:
|
|
toolchain: 1.94.0
|
|
components: rustfmt, clippy
|
|
- run: cargo fmt --all -- --check
|
|
- run: cargo clippy --workspace --all-targets -- -D warnings
|
|
- run: cargo test --workspace
|
|
python:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.11"
|
|
- run: python -m pip install --upgrade pip pytest
|
|
- run: PYTHONPATH=python/lawsynth/src python -m pytest -q python/lawsynth/tests
|
|
typescript:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: pnpm/action-setup@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "22"
|
|
cache: pnpm
|
|
- run: pnpm install --frozen-lockfile
|
|
- run: pnpm run build
|
|
- run: pnpm run typecheck
|
|
- run: pnpm run test
|