Skip to content

Moved MySQL-specific code to separate file #141

Moved MySQL-specific code to separate file

Moved MySQL-specific code to separate file #141

Workflow file for this run

name: build
on: [push, pull_request]
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- ruby: 3.3
gemfile: gemfiles/activerecord80.gemfile
- ruby: 3.3
gemfile: Gemfile
- ruby: 3.2
gemfile: gemfiles/activerecord71.gemfile
- ruby: 3.1
gemfile: gemfiles/activerecord70.gemfile
runs-on: ubuntu-latest
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
services:
mariadb:
image: quay.io/mariadb-foundation/mariadb-devel:11.6-vector-preview
env:
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: 1
MARIADB_DATABASE: neighbor_test
ports:
- 3307:3306
mysql:
image: mysql:9
env:
MYSQL_ALLOW_EMPTY_PASSWORD: 1
MYSQL_DATABASE: neighbor_test
ports:
- 3306:3306
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- uses: ankane/setup-postgres@v1
with:
database: neighbor_test
dev-files: true
- run: |
cd /tmp
git clone --branch v0.7.0 https://github.com/pgvector/pgvector.git
cd pgvector
make
sudo make install
- run: bundle exec rake test
- run: TEST_TRILOGY=1 bundle exec rake test