- Add --swarm <count> capability to launch up to 100 agents in parallel - Support multiple providers: --claude, --openai, --gemini, --grok, --local - Implement lazy agent spawning for efficient resource usage - Add automatic authentication for all providers - Create parallel file processing with progress tracking - Migrate all tests from Jest to Vitest - Add comprehensive test coverage for swarm functionality - Support idiomatic usage: dev --claude --swarm 5 -p 'edit files...' - Version bump to 2.1.0
126 lines
3.3 KiB
YAML
126 lines
3.3 KiB
YAML
name: JetBrains Plugin CI/CD
|
|
|
|
on:
|
|
push:
|
|
branches: [ main, develop ]
|
|
paths:
|
|
- 'pkg/jetbrains/**'
|
|
- '.github/workflows/jetbrains-plugin.yml'
|
|
pull_request:
|
|
branches: [ main ]
|
|
paths:
|
|
- 'pkg/jetbrains/**'
|
|
- '.github/workflows/jetbrains-plugin.yml'
|
|
|
|
jobs:
|
|
test:
|
|
name: Test JetBrains Plugin
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up JDK 17
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
java-version: '17'
|
|
distribution: 'temurin'
|
|
|
|
- name: Setup Gradle
|
|
uses: gradle/gradle-build-action@v2
|
|
|
|
- name: Run tests
|
|
working-directory: ./pkg/jetbrains
|
|
run: ./gradlew test
|
|
|
|
- name: Run detekt
|
|
working-directory: ./pkg/jetbrains
|
|
run: ./gradlew detekt || true # Allow failure for now
|
|
|
|
- name: Upload test results
|
|
uses: actions/upload-artifact@v4
|
|
if: always()
|
|
with:
|
|
name: test-results
|
|
path: pkg/jetbrains/build/test-results/test/
|
|
|
|
build:
|
|
name: Build JetBrains Plugin
|
|
runs-on: ubuntu-latest
|
|
needs: test
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up JDK 17
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
java-version: '17'
|
|
distribution: 'temurin'
|
|
|
|
- name: Setup Gradle
|
|
uses: gradle/gradle-build-action@v2
|
|
|
|
- name: Build plugin
|
|
working-directory: ./pkg/jetbrains
|
|
run: ./gradlew buildPlugin -x buildSearchableOptions
|
|
|
|
- name: Verify plugin
|
|
working-directory: ./pkg/jetbrains
|
|
run: ./gradlew verifyPlugin
|
|
|
|
- name: Upload plugin artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: hanzo-ai-jetbrains-plugin
|
|
path: pkg/jetbrains/build/distributions/*.zip
|
|
|
|
release:
|
|
name: Release JetBrains Plugin
|
|
runs-on: ubuntu-latest
|
|
needs: build
|
|
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Download plugin artifact
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
name: hanzo-ai-jetbrains-plugin
|
|
path: ./dist
|
|
|
|
- name: Create Release
|
|
id: create_release
|
|
uses: actions/create-release@v1
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
tag_name: jetbrains-plugin-v${{ github.run_number }}
|
|
release_name: JetBrains Plugin Build ${{ github.run_number }}
|
|
draft: false
|
|
prerelease: true
|
|
body: |
|
|
Automated release of Hanzo AI JetBrains Plugin
|
|
|
|
## Installation
|
|
1. Download the plugin ZIP file
|
|
2. Open your JetBrains IDE
|
|
3. Go to Settings → Plugins → ⚙️ → Install Plugin from Disk
|
|
4. Select the downloaded ZIP file
|
|
|
|
## Features
|
|
- Access to 200+ LLM models
|
|
- AI-powered symbol search
|
|
- Interactive chat interface
|
|
- MCP server integration
|
|
|
|
- name: Upload Release Asset
|
|
uses: actions/upload-release-asset@v1
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
asset_path: ./dist/Hanzo AI-0.1.0.zip
|
|
asset_name: hanzo-ai-jetbrains-plugin.zip
|
|
asset_content_type: application/zip |