Repository navigation
Set up GitHub Actions for tests, lint, and formatting - #2
Merged
Merged
Conversation
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.
SimpleHTML currently has no GitHub Actions checks. Add test, lint, and automatic formatting workflows using the patterns from
pro-crudandswift-glob.xcode-27preview runner and the full iOS suite on iPhone 17 / iOS 26.5 with Xcode 26.6, matching the checked-in image baselines. Retain failed macOS images and iOS test results as artifacts.bin/formatandbin/linthelpers. Check production code for forced operations and unsafe concurrency overrides.main; support manual runs and cancel superseded runs.Make macOS behavior snapshots explicitly render at 2× in their original color space so they also pass on a runner without a Retina display. Documentation snapshots require every pixel to match with a perceptual color precision of 0.99: downloaded runner images differ from the references in only 5–41 channel bytes per image, each by one value. Behavior snapshots keep exact comparisons. Build iOS tests with a deployment target of 16 for their SwiftUI modifiers; the library's iOS 15 minimum stays unchanged.
Mechanical formatting is isolated in the first commit. No snapshot references were regenerated. Contributor documentation includes the tooling commands, runner versions, and image-comparison behavior.
Validation: all four GitHub checks passed on the final revision: macOS and iOS tests, SwiftLint, and automatic formatting. The full local macOS and iOS suites also passed, SwiftLint reported zero violations, and SwiftFormat's lint mode passed. Actionlint passed with its outdated
xcode-27label warning excluded; the runner label was verified by the successful macOS job.