Skip to content

Update Ruby and gem versions #3

Update Ruby and gem versions

Update Ruby and gem versions #3

Workflow file for this run

name: Run RSpec against MySQL
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test-on-mysql:
runs-on: macos-13
strategy:
matrix:
ruby-version: ['2.7', '3.0', '3.1', '3.2']
mysql-version: ['5.7', '8.0']
steps:
- uses: actions/checkout@v2
- uses: ankane/setup-mysql@v1
with:
mysql-version: ${{ matrix.mysql-version }}
- name: Create the test database
run: mysqladmin create rails_cursor_pagination_testing
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run tests
run: bundle exec rake spec
env:
DB_ADAPTER: mysql2
DB_HOST: 127.0.0.1
DB_USER: root