Repository navigation
Publish on PR merge, test on pull requests - #31
Merged
Merged
Conversation
- 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The 26.3 versions are already on GitHub and Modrinth, so the publish run from merging this should skip or overwrite them.
Summary
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.xvfb-runon 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.GITHUB_TOKENinstead of theG_TOKENsecret, so it can't fail with "Bad credentials" when the personal token expires.actions/checkout@v6,actions/setup-java@v5,softprops/action-gh-release@v3.Merge BreadMoirai/mc-publish#1 first so
mc-publish@masteralso runs on Node 24.🤖 Generated with Claude Code