Files
web/.github/workflows/pr.yml
Ben Meadors b6575329a2 Merge origin/main into sdk-migration
Resolves 8 conflicts from Austin's #1062 (settings unsaved-change-detection fix) colliding with the packages/web -> apps/web restructure + changeRegistry removal. Took the sdk-migration side for the 4 deviceStore/Settings files (the changeRegistry methods #1062 patched were removed in this branch); kept changeRegistry.ts deleted; package.json takes main's dep bumps (immer 11, js-cookie, lucide-react) + keeps better-result; lockfile regenerated. NOTE: #1062's fix is superseded by the architecture change and was NOT ported -- needs verification the bug doesn't recur in the new change-tracking. Merged app builds clean; 232/236 web tests pass (4 failures are the pre-existing localStorage env issue).
2026-06-13 21:04:38 -05:00

61 lines
1.3 KiB
YAML

name: Pull Request CI
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
permissions:
contents: read
concurrency:
group: pr-${{ github.event.pull_request.number }}-ci
cancel-in-progress: true
env:
CI: true
jobs:
build-and-package:
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.draft == false }}
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup pnpm
uses: pnpm/action-setup@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 24
cache: pnpm
cache-dependency-path: pnpm-lock.yaml
- name: Debug dependency state
run: |
set -euo pipefail
echo "GITHUB_SHA=${GITHUB_SHA}"
git log --oneline -1
pnpm --version
node --version
grep -n "meshtastic__protobufs" pnpm-lock.yaml || true
grep -n "2.7.18" pnpm-lock.yaml || true
grep -n "2.7.20" pnpm-lock.yaml || true
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run linter
run: pnpm run lint
- name: Check formatter
run: pnpm run check
- name: Run tests
run: pnpm run test
- name: Build web package
run: pnpm --filter "./apps/web" run build