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

Flexibility in postgres-version #50

Open
bkoelman opened this issue Oct 29, 2024 · 1 comment
Open

Flexibility in postgres-version #50

bkoelman opened this issue Oct 29, 2024 · 1 comment

Comments

@bkoelman
Copy link

In v7, it seems impossible to keep the behavior that v6 provided: run the pre-installed version.

For my project, I don't care much which Postgres version is installed, and prefer to rely on the GitHub action images to ship with widely-tested versions instead of the latest (even if that varies per OS). What's worse: the duration of the action went from 7 to 30 seconds (on Ubuntu, Windows is likely much slower than that).

Can you provide the option default for postgres-version, which wouldn't install anything and just start what's preinstalled?
And possibly latest, for users that don't care about the specific version number? That would fit with the idea of using hosted runner images, where the versions of software shift all the time.

@ikalnytskyi
Copy link
Owner

Hey @bkoelman,

I was thinking about something like this, but situation is tricky. It seems GitHub is slowly abandoning idea of shipping PostgreSQL with its runner images. Neither macOS 13 nor macOS 14 nor macOS 15 comes with pre-installed PostgreSQL, which means installation is a mandatory step for macOS runners.

Now let's take Ubuntu. The most recent version, 24.04, comes with PostgreSQL 16, while both 20.04 and 22.04 come with PostgreSQL 14. I agree that for some basic usage it doesn't matter at all, but it might become problematic who embrace most modern PostgreSQL features.

One of this action's driving principle is to make sure it sets up a homogenous environment, i.e. an environment that behaves identically (or at least tries to) across all three operating systems. At this moment, I'm not sure how can I achieve this without installation/reinstallation. 🤔

I'm going to keep this ticket open and think about it more. For a time being, I recommend using v6 until it's addressed.

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

No branches or pull requests

2 participants