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

Speed up make examples #403

Merged
merged 2 commits into from
Oct 15, 2024
Merged

Speed up make examples #403

merged 2 commits into from
Oct 15, 2024

Conversation

ryanslade
Copy link
Collaborator

@ryanslade ryanslade commented Oct 15, 2024

The previous version was building the pgroll command before every example run. Instead, build the command once at the beginning and remove it at the end.

The previous versionw was building the pgroll command before every
example run. Instead, build the command once at the beginning and remove
it at the end.
@ryanslade
Copy link
Collaborator Author

@andrew-farries Do we want to somehow use this during CI to confirm examples run correctly?

Copy link
Collaborator

@andrew-farries andrew-farries left a comment

Choose a reason for hiding this comment

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

Nice 👍

We already test examples in CI here:
https://github.com/xataio/pgroll/blob/main/.github/workflows/build.yml#L127

It doesn't use make examples though; it should probably do so.

@ryanslade
Copy link
Collaborator Author

I'll see if I can get it to use the Makefile in this PR

@ryanslade ryanslade merged commit aeb11fd into main Oct 15, 2024
52 checks passed
@ryanslade ryanslade deleted the rs/faster-make-examples branch October 15, 2024 16:07
kvch pushed a commit to kvch/pgroll that referenced this pull request Oct 16, 2024
The previous version was building the pgroll command before every
example run. Instead, build the command once at the beginning and remove
it at the end.
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.

3 participants