-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: use typesense github action action
- Loading branch information
1 parent
68e6691
commit f406281
Showing
1 changed file
with
6 additions
and
14 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|