Skip to content

Commit 9064f32

Browse files
Run chroma as a service container
1 parent fafd66b commit 9064f32

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/test.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
11
name: Tests
22

3-
on: ['push', 'pull_request']
3+
on: [ 'push', 'pull_request' ]
44

55
jobs:
66
test:
7-
runs-on: ${{ matrix.os }}
7+
runs-on: ubuntu-latest
8+
89
strategy:
910
fail-fast: true
1011
matrix:
11-
os: [ ubuntu-latest ]
1212
php: [ 8.1, 8.2, 8.3 ]
1313
dependency-version: [ prefer-lowest, prefer-stable ]
1414

1515
name: Tests P${{ matrix.php }} - ${{ matrix.os }} - ${{ matrix.dependency-version }}
1616

17+
services:
18+
chroma:
19+
image: chromadb/chroma
20+
ports:
21+
- 8000:8000
22+
1723
steps:
1824
- name: Checkout
1925
uses: actions/checkout@v3
@@ -34,8 +40,5 @@ jobs:
3440
- name: Install Composer dependencies
3541
run: composer update --${{ matrix.dependency-version }} --no-interaction --prefer-dist
3642

37-
- name: Run the chroma database
38-
run: docker compose up -d
39-
4043
- name: Run tests
4144
run: composer test

0 commit comments

Comments
 (0)