Skip to content

Merge pull request #3 from BlackyDrum/main #25

Merge pull request #3 from BlackyDrum/main

Merge pull request #3 from BlackyDrum/main #25

Workflow file for this run

name: tests
on: [ 'push', 'pull_request' ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [ 8.1, 8.2, 8.3 ]
dependency-version: [ prefer-lowest, prefer-stable ]
name: Tests on PHP ${{ matrix.php }} - ${{ matrix.dependency-version }}
services:
chroma-wo-auth:
image: chromadb/chroma
ports:
- 8000:8000
chroma-w-auth:
image: chromadb/chroma
ports:
- 8001:8000
env:
CHROMA_SERVER_AUTH_CREDENTIALS: 'test-token'
CHROMA_SERVER_AUTH_CREDENTIALS_PROVIDER: 'chromadb.auth.token.TokenConfigServerAuthCredentialsProvider'
CHROMA_SERVER_AUTH_PROVIDER: 'chromadb.auth.token.TokenAuthServerProvider'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.composer/cache/files
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, mbstring, zip
coverage: none
- name: Install Composer dependencies
run: composer update --${{ matrix.dependency-version }} --no-interaction --prefer-dist
- name: Run tests
run: composer test