Skip to content

Commit

Permalink
ci: use typesense github action action
Browse files Browse the repository at this point in the history
  • Loading branch information
tharropoulos committed Aug 1, 2024
1 parent 68e6691 commit f406281
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,16 @@ jobs:
strategy:
matrix:
typesense-version: ["26.0"]
typesense-port: ["8108:8108"]

services:
typesense:
image: typesense/typesense:${{ matrix.typesense-version }}
typesense-port: ["8108"]

steps:
- uses: actions/checkout@v4
- name: Start Typesense
run: |
docker run -d \
-p ${{ matrix.typesense-port }} \
--name typesense \
-v /tmp/typesense:/data \
typesense/typesense:${{ matrix.typesense-version}} \
--api-key=xyz \
--data-dir /data \
--enable-cors
uses: jirevwe/[email protected]
with:
typesense-version: ${{ matrix.typesense-version }}
typesense-api-key: xyz
typesense-port: ${{ matrix.typesense-port }}
- name: Curl Typesense
run: sleep 10 && curl http://localhost:8108/health
- name: Set up Python
Expand Down

0 comments on commit f406281

Please sign in to comment.