Safely acquire lock on multiple tables #534
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: | |
strategy: | |
matrix: | |
pg: | |
- 12 | |
- 13 | |
- 14 | |
- 15 | |
- 16 | |
ruby: | |
- "3.1" | |
- "3.2" | |
- "3.3" | |
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 | |
ImageOS: ubuntu20 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build postgres image and start the container | |
run: docker-compose up -d --build | |
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 |