Skip to content

Commit b96e9f3

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

File tree

1 file changed

+30
-2
lines changed

1 file changed

+30
-2
lines changed

.github/workflows/ci-pipeline.yaml

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,15 @@ 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:
61+
- name: Check MSSQL test availability
62+
if: matrix.db == 'mssql' && ${{ secrets.MSSQL_VECTOR_PASSWORD }} == ''
63+
run: |
64+
echo "Skipping MSSQL test: required secrets are missing."
65+
exit 78
66+
6167
- uses: actions/checkout@v4
6268

6369
- name: Download image artifact
@@ -69,6 +75,28 @@ jobs:
6975
- name: Load Docker image
7076
run: docker load -i image.tar
7177

78+
- name: Log in to registry for SQL-vector preview
79+
if: matrix.db == 'mssql'
80+
uses: docker/login-action@v3
81+
with:
82+
registry: ${{ secrets.MSSQL_VECTOR_REGISTRY }}
83+
username: ${{ secrets.MSSQL_VECTOR_USERNAME }}
84+
password: ${{ secrets.MSSQL_VECTOR_PASSWORD }}
85+
86+
- name: Pull preview SQL Server-vector image
87+
if: matrix.db == 'mssql'
88+
run: |
89+
docker pull ${{ secrets.MSSQL_VECTOR_REGISTRY }}/mssql-sql2025-ctp1-3-release/mssql-server-rhel9:17.0.400.5_4
90+
91+
- name: Start SQL Server-vector
92+
if: matrix.db == 'mssql'
93+
run: |
94+
docker run -d --name mssql-vector-test \
95+
-e ACCEPT_EULA=Y \
96+
-e MSSQL_SA_PASSWORD=StrongPreviewPass1! \
97+
-p 1433:1433 \
98+
${{ secrets.MSSQL_VECTOR_REGISTRY }}/mssql-sql2025-ctp1-3-release/mssql-server-rhel9:17.0.400.5_4
99+
72100
- name: Start PGVector
73101
if: matrix.db == 'pgvector'
74102
run: |
@@ -115,7 +143,7 @@ jobs:
115143
test-image:${{ needs.build.outputs.image_tag }}
116144
117145
release:
118-
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')
146+
if: (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')) && github.event.repository.fork == false
119147
runs-on: ubuntu-latest
120148
needs: [lint, build, test]
121149
steps:

0 commit comments

Comments
 (0)