Update Ruby and gem versions #1
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 Postgres | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
test-on-postgres: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
ruby-version: ['2.7', '3.0', '3.1', '3.2'] | |
postgres-version: [12, 13, 14, 15] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: ankane/setup-postgres@v1 | |
with: | |
postgres-version: ${{ matrix.postgres-version }} | |
- name: Create the test database | |
run: createdb 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: postgresql | |
DB_HOST: 127.0.0.1 | |
DB_USER: ${{ env.USER }} |