forked from typesense/typesense-php
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (27 loc) · 716 Bytes
/
Copy pathtests.yml
File metadata and controls
29 lines (27 loc) · 716 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: tests
on: [push, pull_request]
jobs:
test:
name: Run tests with PHP v8.3
runs-on: ubuntu-latest
services:
typesense:
image: typesense/typesense:28.0.rc36
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