Revamp agent mode #612
Workflow file for this run
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: Test Desktop Integration | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "apps/desktop/**" | |
| - "packages/**" | |
| - ".github/workflows/test-desktop-integration.yml" | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - "apps/desktop/**" | |
| - "packages/**" | |
| - ".github/workflows/test-desktop-integration.yml" | |
| jobs: | |
| integration-tests: | |
| name: Desktop Integration Tests | |
| runs-on: ubuntu-latest | |
| # Only run on push to main OR on PRs from the same repo (not forks) | |
| if: | | |
| github.event_name == 'push' || | |
| (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) | |
| steps: | |
| - name: Checkout source | |
| uses: actions/checkout@v4 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: .nvmrc | |
| cache: pnpm | |
| cache-dependency-path: pnpm-lock.yaml | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build dependencies | |
| run: pnpm exec turbo run build --filter=desktop^... | |
| - name: Create empty .env file since secrets are injected via env vars | |
| run: | | |
| echo '' > apps/desktop/test/helpers/.env | |
| - name: Run desktop integration tests | |
| env: | |
| GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }} | |
| run: pnpm --filter desktop run test:integration |