Skip to content

Commit f043956

Browse files
Add Swift Macro Compatibility Check to CI (#3406)
* Add Swift Macro Compatibility Check GitHub Action This PR adds a **Swift Macro Compatibility Check** GitHub Action to ensure that macro changes remain compatible across different versions of `swift-syntax`. The action automatically verifies compatibility with major `swift-syntax` versions (`509.0.0`, `510.0.0`, `600.0.0`), running builds and tests. It's also posible to turn on checking agains all versions of `swift-syntax`. #### Key Benefits: - **Automated Compatibility Checks**: No need to manually test changes across different `swift-syntax` versions—this is handled automatically in CI. - **Prevents Breakages**: Helps avoid accidentally committing changes that break older versions. * Use major versions only * Use `v1` version --------- Co-authored-by: Stephen Celis <[email protected]>
1 parent c8c97a4 commit f043956

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/ci.yml

+12
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,15 @@ jobs:
113113
run: make DERIVED_DATA_PATH=~/.derivedData SCHEME="Todos" xcodebuild
114114
- name: VoiceMemos
115115
run: make DERIVED_DATA_PATH=~/.derivedData SCHEME="VoiceMemos" xcodebuild
116+
117+
check-macro-compatibility:
118+
name: Check Macro Compatibility
119+
runs-on: macos-latest
120+
steps:
121+
- name: Checkout repository
122+
uses: actions/checkout@v4
123+
- name: Run Swift Macro Compatibility Check
124+
uses: Matejkob/swift-macro-compatibility-check@v1
125+
with:
126+
run-tests: false
127+
major-versions-only: true

0 commit comments

Comments
 (0)