github action workflows for test coverage #40
This file contains 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: Qdrant Test - Go Test | |
on: [push, pull_request] | |
jobs: | |
build_and_test: | |
runs-on: ubuntu-latest | |
services: | |
qdrant_db: | |
image: qdrant/qdrant | |
env: | |
QDRANT__SERVICE__GRPC_PORT: 6334 | |
ports: | |
- 6334:6334 | |
- 6333:6333 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
repository: siddhantprateek/qdrant | |
- name: Start Docker Compose services | |
run: docker-compose -f docker-compose.yml up -d | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.20 | |
- name: Run Go tests | |
run: go test ./... | |
- name: Clean up Docker Compose services | |
run: docker-compose -f docker-compose.yml down |