We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02aa0eb commit 0ceb3d9Copy full SHA for 0ceb3d9
1 file changed
.github/workflows/tests.yml
@@ -11,8 +11,25 @@ jobs:
11
strategy:
12
matrix:
13
ruby-version: ['2.7', '3.0', '3.2']
14
+ services:
15
+ typesense:
16
+ image: typesense/typesense:27.1
17
+ ports:
18
+ - 8108:8108
19
+ volumes:
20
+ - /tmp/typesense-data:/data
21
+ - /tmp/typesense-analytics:/analytics
22
+ env:
23
+ TYPESENSE_API_KEY: xyz
24
+ TYPESENSE_DATA_DIR: /data
25
+ TYPESENSE_ENABLE_CORS: true
26
+ TYPESENSE_ANALYTICS_DIR: /analytics
27
+ TYPESENSE_ENABLE_SEARCH_ANALYTICS: true
28
29
steps:
30
+ - name: Wait for Typesense
31
+ run: |
32
+ timeout 20 bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost:8108/health)" != "200" ]]; do sleep 1; done' || false
33
- uses: actions/checkout@v3
34
- uses: ruby/setup-ruby@v1
35
with:
0 commit comments