Skip to content

Commit

Permalink
ci: add typesense github action to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tharropoulos committed Jul 17, 2024
1 parent 9950884 commit 6c1719e
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,38 @@
name: Lint and test

on: [pull_request]
on: [pull_request, push]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
typesense-version: ["0.25.2", "26.0"]
typesense-port: ["8108:8108"]

services:
typesense:
image: typesense/typesense:${{ matrix.typesense-version }}

steps:
- uses: actions/checkout@v4
- name: Start Typesense
run: |
docker run -d \
-p ${{ matrix.typesense-port }} \
--name typesense \
-v /tmp/typesense-data:/data \
typesense/typesense:${{ matrix.typesense-version}} \
--api-key=xyz \
--data-dir /data \
--enable-cors
- name: Curl Typesense
run: sleep 1 && curl http://localhost:8108/health
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
python-version: "3.x"
- run: touch .env
- name: Install dependencies
run: |
Expand Down

0 comments on commit 6c1719e

Please sign in to comment.