Skip to content

Commit

Permalink
update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeyson committed May 23, 2024
1 parent 8fb2767 commit 2991301
Showing 1 changed file with 13 additions and 26 deletions.
39 changes: 13 additions & 26 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,37 +20,30 @@ jobs:

test:
runs-on: ubuntu-latest
container: typesense/typesense:26.0
container:
image: typesense/typesense:26.0
ports: ['8108:8108']

env:
MIX_ENV: test
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# services:
# typesense:
# image: typesense/typesense:${{ matrix.typesense-version }}
# ports:
# - "8108:8108"
# command: '--data-dir /data --api-key=xyz --enable-cors'

steps:
- name: Start Typesense
- name: Checkout repo
uses: actions/checkout@v4

- name: Setup Typesense
run: |
docker run -d \
-p 8108:8108 \
-v/tmp/typesense:/data \
--name typesense \
typesense/typesense:26.0 \
--api-key=xyz \
--data-dir /data \
--enable-cors
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
docker run -d -p 8108:8108 --name typesense -v/tmp/typesense:/data typesense/typesense:26.0 --api-key=xyz --data-dir /data --enable-cors
- name: Setup Elixir/OTP
uses: erlef/setup-beam@v1
with:
otp-version: '25'
elixir-version: '1.14.x'

- uses: actions/cache@v4
- name: Cache dependencies/builds
uses: actions/cache@v4
with:
path: |
deps
Expand All @@ -59,12 +52,6 @@ jobs:
restore-keys: |
${{ runner.os }}-mixtest-
# - name: Start Typesense
# uses: jirevwe/[email protected]
# with:
# typesense-version: ${{ matrix.typesense-version }}
# typesense-api-key: xyz

- name: Install Dependencies
run: |
mix local.rebar --if-missing
Expand Down

0 comments on commit 2991301

Please sign in to comment.