Skip to content
This repository was archived by the owner on Jun 8, 2026. It is now read-only.

[codex] Update desktop tooling baseline for Node 24 #1077

[codex] Update desktop tooling baseline for Node 24

[codex] Update desktop tooling baseline for Node 24 #1077

Workflow file for this run

name: Tests
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches: [main]
concurrency:
group: test-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
packages: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 24
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Verify Electron binary install
working-directory: apps/desktop
run: |
unset ELECTRON_SKIP_BINARY_DOWNLOAD
electron_dir="$(node -p 'const path = require("node:path"); path.dirname(require.resolve("electron/package.json"))')"
version="$(node -p 'require("electron/package.json").version')"
platform="$(node -p 'process.env.npm_config_platform || process.platform')"
arch="$(node -p 'process.env.npm_config_arch || process.arch')"
platform_path="$(node -p 'const paths = { darwin: "Electron.app/Contents/MacOS/Electron", freebsd: "electron", linux: "electron", mas: "Electron.app/Contents/MacOS/Electron", openbsd: "electron", win32: "electron.exe" }; const value = paths[process.argv[1]]; if (!value) throw new Error(`Electron builds are not available on platform: ${process.argv[1]}`); value' "$platform")"
artifact="electron-v$version-$platform-$arch.zip"
checksum="$(node -p 'const path = require("node:path"); const { createRequire } = require("node:module"); const electronDir = path.dirname(require.resolve("electron/package.json")); const electronRequire = createRequire(path.join(electronDir, "install.js")); const value = electronRequire("./checksums.json")[process.argv[1]]; if (!value) throw new Error(`Missing Electron checksum for ${process.argv[1]}`); value' "$artifact")"
download_dir="${RUNNER_TEMP:-$(mktemp -d)}"
zip_path="$download_dir/$artifact"
curl --fail --location --retry 3 --output "$zip_path" \
"https://github.com/electron/electron/releases/download/v$version/$artifact"
if command -v sha256sum >/dev/null 2>&1; then
actual_checksum="$(sha256sum "$zip_path" | awk '{print $1}')"
else
actual_checksum="$(shasum -a 256 "$zip_path" | awk '{print $1}')"
fi
if [ "$actual_checksum" != "$checksum" ]; then
echo "Electron checksum mismatch for $artifact" >&2
echo "expected $checksum, got $actual_checksum" >&2
exit 1
fi
rm -rf "$electron_dir/dist"
mkdir -p "$electron_dir/dist"
unzip -q "$zip_path" -d "$electron_dir/dist"
if [ -f "$electron_dir/dist/electron.d.ts" ]; then
mv "$electron_dir/dist/electron.d.ts" "$electron_dir/electron.d.ts"
fi
printf "%s" "$platform_path" > "$electron_dir/path.txt"
node -e 'const fs = require("node:fs"); const electronBinary = require("electron"); if (!fs.existsSync(electronBinary)) throw new Error(`Electron binary missing after install at ${electronBinary}`); console.log(`Electron verified at ${electronBinary}`)'
- name: Generate build info
run: pnpm -r prebuild
- name: Lint
run: pnpm -C apps/desktop lint
- name: Typecheck
run: pnpm typecheck
- name: Assert design-system boundary
run: pnpm -C apps/desktop assert:design-system-boundary
- name: Assert design-system flag-off boot
run: pnpm -C apps/desktop test:boot:design-system-off
- name: Measure Agent Dashboard storage
run: pnpm -C apps/desktop measure:agent-dashboard-storage
- name: Run tests
run: pnpm test