ci: add reusable CI validation workflow and run it before releases#1032
Merged
ci: add reusable CI validation workflow and run it before releases#1032
Conversation
doistbot
reviewed
Apr 8, 2026
Member
doistbot
left a comment
There was a problem hiding this comment.
This PR introduces a reusable CI validation workflow that parallelizes code checks and integrates them into the release pipeline to validate merge commits before publishing. Mirroring Typist's structure improves execution speed, while validating right before a release adds a strong safeguard for code quality. A few adjustments could further strengthen the setup, specifically by adding the reopened trigger to pull requests to prevent stale checks, restricting job permissions to enforce least privilege, and removing inherited secrets from the validation step to minimize credential exposure.
b1541f5 to
27b7e88
Compare
Replace the single-job pull_request workflow with a reusable CI validation workflow that splits linting, type checking, testing, and building into parallel jobs. The release workflow now calls this before publishing, ensuring the merged code on main is validated before a release is published.
27b7e88 to
dee18fe
Compare
1 task
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.
Short description
The existing PR workflow ran linting, type checking, tests, and build sequentially in a single job. This PR replaces it with a reusable CI validation workflow that runs these in parallel, matching Typist's structure.
More importantly, the release workflow now calls this validation before publishing. Previously, code was only validated on the PR, but by the time it merges to main, other PRs may have landed and the merge commit itself was never validated. Running CI validation before publishing ensures we don't release broken code.