feat: refactor using agent plugins #3928
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI Check | |
| on: | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| format-check: | |
| runs-on: ubuntu-latest | |
| env: | |
| ELECTRON_SKIP_BINARY_DOWNLOAD: '1' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.28.2 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '24' | |
| cache: 'pnpm' | |
| - name: Install dependencies | |
| # This job only needs JS/TS tooling for format + type checks. | |
| # Skip lifecycle scripts to avoid flaky node-gyp/native module builds in CI. | |
| run: | | |
| for attempt in 1 2 3; do | |
| pnpm install --frozen-lockfile --ignore-scripts && break | |
| if [ "$attempt" -eq 3 ]; then | |
| echo "pnpm install failed after 3 attempts" | |
| exit 1 | |
| fi | |
| echo "Install failed (attempt $attempt). Retrying in 10s..." | |
| sleep 10 | |
| done | |
| - name: Check formatting | |
| run: pnpm --filter @emdash/emdash-desktop run format:check | |
| - name: Type check | |
| run: pnpm --filter @emdash/emdash-desktop run typecheck | |
| - name: Check linting | |
| run: pnpm --filter @emdash/emdash-desktop run lint |