Rename method to be used for upgrading Partman 4 to 5 #790
This file contains hidden or 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: | |
- 13 | |
- 14 | |
- 15 | |
- 16 | |
- 17 | |
ruby: | |
- "3.2" | |
- "3.3" | |
- "3.4" | |
gemfile: | |
- rails_7.1 | |
- rails_7.2 | |
- rails_8.0 | |
partman: | |
- 4 | |
- 5 | |
exclude: | |
- pg: 17 | |
partman: 4 # Partman 4.x is not available in PGDG for PG 17 | |
- pg: 13 | |
partman: 5 # Partman 5.x is not available in PGDG for PG 13 | |
name: PostgreSQL ${{ matrix.pg }} - Partman ${{ matrix.partman }} - 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 }} | |
PARTMAN_VERSION: ${{ matrix.partman }} | |
- 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 |