From f406281b75373939d212f39bc93b6a18ea003116 Mon Sep 17 00:00:00 2001 From: Fanis Tharropoulos Date: Thu, 1 Aug 2024 20:43:32 +0300 Subject: [PATCH] ci: use typesense github action action --- .github/workflows/lint-and-test.yml | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/.github/workflows/lint-and-test.yml b/.github/workflows/lint-and-test.yml index 0755e88..65b1f49 100644 --- a/.github/workflows/lint-and-test.yml +++ b/.github/workflows/lint-and-test.yml @@ -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/typesense-github-action@v1.0.1 + 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