Skip to content

Commit 2897741

Browse files
committed
add pipeline tests for mssql
1 parent 9136bd5 commit 2897741

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

.github/workflows/ci-pipeline.yaml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
strategy:
5656
fail-fast: false
5757
matrix:
58-
db: [pgvector, redis, elastic, qdrant]
58+
db: [pgvector, redis, elastic, qdrant, mssql]
5959

6060
steps:
6161
- uses: actions/checkout@v4
@@ -69,6 +69,28 @@ jobs:
6969
- name: Load Docker image
7070
run: docker load -i image.tar
7171

72+
- name: Log in to registry for SQL-vector preview
73+
if: matrix.db == 'mssql'
74+
uses: docker/login-action@v3
75+
with:
76+
registry: ${{ secrets.MSSQL_VECTOR_REGISTRY }}
77+
username: ${{ secrets.MSSQL_VECTOR_USERNAME }}
78+
password: ${{ secrets.MSSQL_VECTOR_PASSWORD }}
79+
80+
- name: Pull preview SQL Server-vector image
81+
if: matrix.db == 'mssql'
82+
run: |
83+
docker pull ${{ secrets.MSSQL_VECTOR_REGISTRY }}/mssql-sql2025-ctp1-3-release/mssql-server-rhel9:17.0.400.5_4
84+
85+
- name: Start SQL Server-vector
86+
if: matrix.db == 'mssql'
87+
run: |
88+
docker run -d --name mssql-vector-test \
89+
-e ACCEPT_EULA=Y \
90+
-e MSSQL_SA_PASSWORD=StrongPreviewPass1! \
91+
-p 1433:1433 \
92+
${{ secrets.MSSQL_VECTOR_REGISTRY }}/mssql-sql2025-ctp1-3-release/mssql-server-rhel9:17.0.400.5_4
93+
7294
- name: Start PGVector
7395
if: matrix.db == 'pgvector'
7496
run: |
@@ -115,7 +137,7 @@ jobs:
115137
test-image:${{ needs.build.outputs.image_tag }}
116138
117139
release:
118-
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')
140+
if: (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')) && github.event.repository.fork == false
119141
runs-on: ubuntu-latest
120142
needs: [lint, build, test]
121143
steps:

0 commit comments

Comments
 (0)