Skip to content

Add option to force tables to use default engine (#175) #339

Add option to force tables to use default engine (#175)

Add option to force tables to use default engine (#175) #339

Workflow file for this run

name: Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 8
matrix:
activerecord: ["6.1", "7.2", "8.0", "head"]
ruby: ["3.1", "3.2", "3.3", "head"]
mysql: ["5.7", "8.0"]
adapter: ["mysql2", "trilogy"]
exclude:
- activerecord: 6.1
ruby: head
- activerecord: 7.2
ruby: head
- activerecord: 8.0
ruby: 3.1
- activerecord: head
ruby: 3.1
env:
BUNDLE_GEMFILE: "${{ github.workspace }}/gemfiles/activerecord_${{ matrix.activerecord }}.gemfile"
DATABASE_ADAPTER: "${{ matrix.adapter }}"
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{matrix.ruby}}
bundler-cache: true
- name: Install Ubuntu packages
run: sudo apt-get update && sudo apt-get install numactl libaio-dev libmysqlclient-dev
- name: Setup MySQL and ProxySQL (docker-compose)
# Might have to change to docker compose up -d (i.e. Compose V2) when the Ubuntu image changes the docker-compose version
run: docker compose -f docker-compose-mysql-${{ matrix.mysql }}.yml up -d
- name: Wait until DBs are alive
run: ./scripts/helpers/wait-for-dbs.sh
timeout-minutes: 2
- name: Run tests
run: bundle exec rake specs