refactor: unify capability types with data-studio-agent - Remove duplicate capabilities/types.rs and capabilities/registry.rs - Import types and registry from data-studio-agent - Replace SourceKind::SqlKit with SourceKind::AppLocal - Update init_registry() call to pass registration function array - Update agent/executor.rs and agent_adapters.rs to use data-studio-agent paths #394
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: Node.js CI | |
| run-name: ${{ github.event.head_commit.message }} | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [macos-latest, ubuntu-latest, windows-latest] | |
| node-version: [24.x] | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 20 | |
| steps: | |
| - name: Github checkout | |
| uses: actions/checkout@v5 | |
| - name: install Rust stable | |
| uses: dtolnay/rust-toolchain@stable | |
| if: matrix.os == 'ubuntu-latest' | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: npm | |
| - name: install dependencies (ubuntu only) | |
| if: matrix.os == 'ubuntu-latest' | |
| run: | | |
| echo "deb http://gb.archive.ubuntu.com/ubuntu jammy main" | sudo tee -a /etc/apt/sources.list | |
| sudo apt-get update | |
| sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libssl-dev | |
| - name: install frontend dependencies | |
| run: npm ci | |
| - run: npm run lint:check | |
| - run: npm audit --audit-level=critical | |
| - run: npm run test:ci | |
| - name: run Rust tests | |
| if: matrix.os == 'ubuntu-latest' | |
| run: cargo test --manifest-path src-tauri/Cargo.toml | |
| - name: Upload coverage reports to Codecov | |
| uses: codecov/codecov-action@v4 | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| verbose: true | |
| fail_ci_if_error: false | |
| - run: npm run build | |
| env: | |
| NODE_OPTIONS: --max-old-space-size=4096 | |
| - uses: tauri-apps/tauri-action@v0 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| includeRelease: false | |
| args: '' |