-
Notifications
You must be signed in to change notification settings - Fork 466
Description
Description
If one is making changes to Swift syntax by updating CodeGeneration (or in any other way), and one wants to ensure that all changes have been implemented correctly, all tests are passing, and none of the packages are throwing warnings or errors, has to follow these steps:
- Run the
generate-swift-syntaxexecutable. - Run unit tests for the
CodeGenerationpackage. - Run unit tests for the
swift-syntaxpackage. - Run unit tests for the
Examplespackage. - Build the
EditorExtensionproject. - Once PR Move
swift-parser-clito its own package #2063 is merged, build theSwiftParserCLIto ensure no warnings or errors have been added. - Run
swift-format.
Only after completing all these steps, one can be sure that the newly added changes don't impact other parts of the repository.
I find it beneficial to prepare a Swift script that will automate these actions, eliminating the need to remember them all. Running such a script might take a while, so it's probably more useful to do a final check before submitting a PR rather than running it after every change but still I believe it would be cool to have something to rule them all 😇