Skip to content

Optimize CI setup#64

Merged
bquorning merged 4 commits intomasterfrom
ci-setup
Jan 14, 2026
Merged

Optimize CI setup#64
bquorning merged 4 commits intomasterfrom
ci-setup

Conversation

@bquorning
Copy link
Copy Markdown
Contributor

@bquorning bquorning commented Dec 31, 2025

Trigger GitHub Actions on fewer events

When a pull request was opened, we would previously run all CI twice – once for the push event when the branch is pushed up, and once for the pull_request event when the PR is opened.

Now we will run CI only once when the PR is opened (or re-opened, or "synchronized" which I assume is when you push new changes). And we will run CI for the master branch when a PR is merged.

Some repositories configure CI to run only on the push event, but that doesn't work when making changed on a forked repository.

Cache the gem installation on CI

Add job to validate success of matrix

We would like to configure branch protection rules, so that a PR cannot
be merged without CI passing. But configuring which checks need to pass
can be tedious when adding and removing Ruby versions. But by adding one
job that validates the success of the matrix, it becomes simple.

TODO

  • Add branch protection rule requiring that “Checks passing?” is successful.

When a pull request was opened, we would previously run all CI twice -
once for the `push` event when the branch is pushed up, and once for the
`pull_request` event when the PR is opened.

Now we will run CI only once when the PR is opened (or re-opened, or
"synchronized" which I assume is when you push new changes). And we will
run CI for the master branch when a PR is merged.

Some repositories configure CI to run _only_ on the `push` event, but
that doesn't work when making changed on a forked repository.
At least until we add a Rakefile
We would like to configure branch protection rules, so that a PR cannot
be merged without CI passing. But configuring which checks need to pass
can be tedious when adding and removing Ruby versions. But by adding one
job that validates the success of the matrix, it becomes simple.
@bquorning bquorning requested a review from cyberdelia December 31, 2025 12:40
@bquorning bquorning marked this pull request as ready for review December 31, 2025 12:40
@bquorning bquorning requested a review from koic December 31, 2025 13:47
@bquorning
Copy link
Copy Markdown
Contributor Author

cc @ydah

@bquorning bquorning merged commit fe431bf into master Jan 14, 2026
9 checks passed
@bquorning bquorning deleted the ci-setup branch January 14, 2026 13:39
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.

1 participant