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-syntax
executable. - Run unit tests for the
CodeGeneration
package. - Run unit tests for the
swift-syntax
package. - Run unit tests for the
Examples
package. - Build the
EditorExtension
project. - Once PR Move
swift-parser-cli
to its own package #2063 is merged, build theSwiftParserCLI
to 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 😇