Update Ruby and gem versions #5
Workflow file for this run
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: 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 |