Skip to content

Commit

Permalink
ci: add integration testing to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
tharropoulos committed Nov 19, 2024
1 parent 02aa0eb commit 0ceb3d9
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,25 @@ jobs:
strategy:
matrix:
ruby-version: ['2.7', '3.0', '3.2']
services:
typesense:
image: typesense/typesense:27.1
ports:
- 8108:8108
volumes:
- /tmp/typesense-data:/data
- /tmp/typesense-analytics:/analytics
env:
TYPESENSE_API_KEY: xyz
TYPESENSE_DATA_DIR: /data
TYPESENSE_ENABLE_CORS: true
TYPESENSE_ANALYTICS_DIR: /analytics
TYPESENSE_ENABLE_SEARCH_ANALYTICS: true

steps:
- name: Wait for Typesense
run: |
timeout 20 bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost:8108/health)" != "200" ]]; do sleep 1; done' || false
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
Expand Down

0 comments on commit 0ceb3d9

Please sign in to comment.