Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI

on:
pull_request:
branches: [main]

jobs:
ci:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: "25.8.0"
cache: "npm"
cache-dependency-path: |
package-lock.json
web/package-lock.json

- name: Install dependencies
run: npm ci

- name: Install web dependencies
run: npm --prefix web ci

- name: Type check
run: npm run check

- name: Lint
run: npm run lint:web

- name: Build
run: npm run build
14 changes: 14 additions & 0 deletions bin/dispatch-launchd-wrapper
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/zsh
#
# Wrapper script for launchd. Sources the user's shell config to ensure
# the full environment (NVM, Homebrew, PATH, API keys, etc.) is available
# to Dispatch and any agents it spawns.
#
# launchd runs with a minimal environment by default - this fixes that.

[[ -f ~/.zprofile ]] && source ~/.zprofile
[[ -f ~/.zshrc ]] && source ~/.zshrc

ROOT_DIR="$(cd "$(dirname "$0")/.." && pwd)"

exec node "$ROOT_DIR/dist/server.js"
Loading