Skip to content

Publish on PR merge, test on pull requests - #31

Merged
BreadMoirai merged 3 commits into
mainfrom
ci/publish-on-merge
Sep 17, 2026
Merged

BreadMoirai merged 3 commits into
mainfrom
ci/publish-on-merge

Conversation

@BreadMoirai

@BreadMoirai BreadMoirai commented Sep 17, 2026 •

Copy link
Copy Markdown
Owner

The 26.3 versions are already on GitHub and Modrinth, so the publish run from merging this should skip or overwrite them.

Summary

  • Publish Mod now runs only when a pull request is merged (pull_request: closed + merged == true) and checks out the merge commit. Manual dispatch and running on every PR push are removed, and game tests no longer run during publish.
  • New Test workflow runs the client game tests on pull requests. Loom already runs each client under xvfb-run on CI; the workflow installs Mesa's software Vulkan driver because 26.3 can't get an OpenGL context under Xvfb and hangs without a Vulkan fallback. Runs time out after 60 minutes.
  • The GitHub release is created with the built-in GITHUB_TOKEN instead of the G_TOKEN secret, so it can't fail with "Bad credentials" when the personal token expires.
  • Actions moved to their Node 24 versions: actions/checkout@v6, actions/setup-java@v5, softprops/action-gh-release@v3.
  • The repeat-last tests now hold the repeat key until the crafts are done instead of for a fixed number of ticks. On the slower GitHub runner, 1.21.11 released the key after 61 of 64 crafts.

Merge BreadMoirai/mc-publish#1 first so mc-publish@master also runs on Node 24.

🤖 Generated with Claude Code

- Publish Mod runs only when a pull request is merged (checks out the merge commit); tests no longer run there.
- New Test workflow runs game tests on pull requests.
- Create the GitHub release with GITHUB_TOKEN instead of the G_TOKEN secret.
- Move actions to their Node 24 versions (checkout v6, setup-java v5, action-gh-release v3).
The repeat-last tests held the repeat key for a fixed number of ticks, tuned on a desktop.
On a GitHub runner crafting is slower, so 1.21.11 released the key after 61 of 64 crafts.
Hold until the expected output is in the inventory (or on the ground for the drop test),
then keep holding briefly so the client resyncs before release.

Test workflow: drop the redundant xvfb-run (Loom already wraps clients in it on CI), keep
going past a failing version, and time out hung runs.
Under Xvfb, 26.3's SDL window can't find a GLX visual, so the client falls back to Vulkan and
hangs when no Vulkan driver is installed. Fabric API's CI installs mesa-vulkan-drivers for the
same reason.
@BreadMoirai
BreadMoirai merged commit 78c8cb3 into main Sep 17, 2026
1 check passed
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