Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maintenance #7

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Maintenance #7

wants to merge 5 commits into from

Conversation

rwojsznis
Copy link
Member

This pull request includes several updates to the CI configuration, dependencies, and documentation. The most important changes involve updating the CI matrix for Ruby and PostgreSQL versions, removing outdated Dockerfiles, and updating the CHANGELOG.md and gemspec for versioning.

CI Configuration Updates:

  • Updated the CI matrix to test on Ruby versions 3.0.7, 3.1.6, and 3.2.6, and PostgreSQL versions 14, 15, and 16.
  • Updated the GitHub Actions checkout version to v4 in the CI workflow.

Dependency and Docker Updates:

  • Removed outdated Dockerfile-2.6.6 and Dockerfile-3.1.0. [1] [2]
  • Updated docker-compose.yml to use PostgreSQL 16.4-alpine and removed Ruby service configuration.

Documentation and Versioning:

  • Updated CHANGELOG.md to reflect the new version 0.2.0, adding support for Rails 7.0, 7.1, and 7.2.
  • Bumped gem version to 0.2.0 in conflict_free_schema.gemspec.
  • Updated README.md to correct the instructions for spinning up the PostgreSQL test dependency.

@rwojsznis rwojsznis self-assigned this Nov 12, 2024
- { ruby: 3.1, postgres: 13, gemfile: rails_7.2 }
- { ruby: 3.2, postgres: 13, gemfile: rails_7.2 }
- { ruby: 3.0.7, postgres: 14, gemfile: rails_6.0 }
- { ruby: 3.0.7, postgres: 15, gemfile: rails_6.0 }
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems like postgres 15+ will explodes on dump version mismatch 🤔

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pg_dump does not want to be working with a server version from the future -- the other way around is mostly fine.

You could use ubuntu-22.04 for a runs_on target which installs v16 by default (this will relatively soon be the target for ubuntu-latest — see actions/runner-images#10636)

Alternatively, manually installing an updated version of the PostgreSQL client libraries would help:

- name: Update postgres
  run: |
     sudo sh -c 'echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
     sudo apt-get update && sudo apt-get install postgresql-client-16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants