feat: enterprise chat with RAG search #204
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 | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| services: | |
| postgres: | |
| image: postgres:16 | |
| env: | |
| POSTGRES_USER: tracevault | |
| POSTGRES_PASSWORD: tracevault | |
| POSTGRES_DB: tracevault | |
| ports: | |
| - 5432:5432 | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Create enterprise stub (submodule not available in OSS CI) | |
| run: | | |
| if [ ! -f enterprise/Cargo.toml ]; then | |
| mkdir -p enterprise/src | |
| cat > enterprise/Cargo.toml << 'STUB' | |
| [package] | |
| name = "tracevault-enterprise" | |
| version = "0.1.0" | |
| edition = "2021" | |
| publish = false | |
| [dependencies] | |
| tracevault-core = { path = "../crates/tracevault-core" } | |
| async-trait = "0.1" | |
| STUB | |
| echo "" > enterprise/src/lib.rs | |
| fi | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy, rustfmt | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Check formatting | |
| run: cargo fmt -- --check | |
| - name: Clippy | |
| run: cargo clippy --all-targets -- -D warnings | |
| - name: Build | |
| run: cargo build --release | |
| - name: Test | |
| run: cargo test | |
| env: | |
| DATABASE_URL: postgres://tracevault:tracevault@localhost:5432/tracevault | |
| frontend: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: web | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: pnpm | |
| cache-dependency-path: web/pnpm-lock.yaml | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm run check | |
| - run: pnpm run build | |
| - run: pnpm test |