Added test for empty array #57
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: [push, pull_request] | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- php: 8.3 | |
- php: "8.1" | |
composer: --prefer-lowest | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
- run: composer update ${{ matrix.composer }} | |
- uses: ankane/setup-postgres@v1 | |
with: | |
database: pgvector_php_test | |
dev-files: true | |
- run: | | |
cd /tmp | |
git clone --branch v0.6.0 https://github.com/pgvector/pgvector.git | |
cd pgvector | |
make | |
sudo make install | |
- run: composer test | |
- run: createdb pgvector_example | |
- run: php examples/pgsql.php |