Skip to content

add tests

add tests #2

Workflow file for this run

name: tests
on: [push, pull_request]
jobs:
test:
name: Run tests with PHP v8.3
runs-on: ubuntu-latest
services:
typesense:
image: typesense/typesense:26.0
ports:
- 8108:8108/tcp
volumes:
- /tmp/typesense-server-data:/data
env:
TYPESENSE_DATA_DIR: /data
TYPESENSE_API_KEY: xyz
TYPESENSE_ENABLE_CORS: true
steps:
- uses: actions/checkout@v4
- name: Setup PHP 8.3
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
coverage: xdebug
- uses: php-actions/composer@v6
- name: Run tests
run: vendor/bin/phpunit --coverage-text --testdox