From cb4e3b6502097712312ccbdddb9fee52147da514 Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 2 Jan 2025 12:05:49 +0800 Subject: [PATCH] Enhance GitHub Actions workflow by adding Qdrant service configuration for unit tests. This update introduces Qdrant as a service dependency, specifying its HTTP and gRPC ports, which improves the testing environment and ensures comprehensive service integration during unit tests. --- .github/workflows/pr-test.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/pr-test.yml b/.github/workflows/pr-test.yml index f51bae7..6d9c87b 100644 --- a/.github/workflows/pr-test.yml +++ b/.github/workflows/pr-test.yml @@ -38,10 +38,21 @@ env: MONGO_TEST_PASS: "123456" OPENAI_TEST_KEY: ${{ secrets.OPENAI_TEST_KEY }} + QDRANT_TEST_HOST: "127.0.0.1" + QDRANT_TEST_PORT: "6334" + QDRANT_TEST_HTTP_PORT: "6333" jobs: unit-test: runs-on: ubuntu-latest + + services: + qdrant: + image: qdrant/qdrant:latest + ports: + - 6333:6333 # HTTP API + - 6334:6334 # gRPC + strategy: matrix: go: [1.23.0]