Don't load pry by default; add config for pry when loaded #31
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: CI | |
on: [push, pull_request] | |
jobs: | |
test_postgres: | |
strategy: | |
matrix: | |
pg: | |
- 11 | |
- 12 | |
- 13 | |
- 14 | |
- 15 | |
- 16 | |
ruby: | |
- "3.1" | |
- "3.2" | |
gemfile: | |
- rails_6_1 | |
- rails_7_0 | |
- rails_7_1 | |
name: PostgreSQL ${{ matrix.pg }} - Ruby ${{ matrix.ruby }} - ${{ matrix.gemfile }} | |
runs-on: ubuntu-latest | |
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps | |
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Start the postgres container | |
run: docker compose up -d | |
env: | |
PGVERSION: ${{ matrix.pg }} | |
- name: Setup Ruby using .ruby-version file | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
- run: bundle exec rake spec | |
env: | |
DATABASE: postgresql | |
test_sqlite: | |
strategy: | |
matrix: | |
ruby: | |
- "3.1" | |
- "3.2" | |
gemfile: | |
- rails_6_1 | |
- rails_7_0 | |
- rails_7_1 | |
name: SQLite - Ruby ${{ matrix.ruby }} - ${{ matrix.gemfile }} | |
runs-on: ubuntu-latest | |
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps | |
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Ruby using .ruby-version file | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
- run: bundle exec rake spec | |
env: | |
DATABASE: sqlite |