|
50 | 50 | mv sdk_api_sentryswiftui.json sdk_api_sentryswiftui_base.json |
51 | 51 | mv sdk_api_objc.json sdk_api_objc_base.json |
52 | 52 | mv sdk_api_objc.diff.json sdk_api_objc.diff_base.json |
| 53 | + mv sdk_api_v10.json sdk_api_v10_base.json |
| 54 | + mv sdk_api_objc_v10.json sdk_api_objc_v10_base.json |
| 55 | + mv sdk_api_objc_v10.diff.json sdk_api_objc_v10.diff_base.json |
53 | 56 | ./scripts/update-api.sh |
54 | 57 |
|
55 | 58 | - name: Diagnose breaking changes for Sentry |
@@ -112,6 +115,47 @@ jobs: |
112 | 115 | exit 1 |
113 | 116 | fi |
114 | 117 |
|
| 118 | + - name: Diagnose breaking changes for Sentry V10 |
| 119 | + if: always() |
| 120 | + run: | |
| 121 | + if diff -q "sdk_api_v10_base.json" "sdk_api_v10.json" > /dev/null; then |
| 122 | + echo "No Sentry V10 API changes detected." |
| 123 | + else |
| 124 | + echo "❌ Sentry V10 public API changes are detected. If they're intended run 'make generate-public-api' and commit the changes." |
| 125 | + diff "sdk_api_v10_base.json" "sdk_api_v10.json" || true |
| 126 | + xcrun --sdk iphoneos swift-api-digester \ |
| 127 | + -diagnose-sdk \ |
| 128 | + -o v10_result.json \ |
| 129 | + -input-paths sdk_api_v10_base.json \ |
| 130 | + -input-paths sdk_api_v10.json \ |
| 131 | + -json \ |
| 132 | + -v |
| 133 | + cat v10_result.json |
| 134 | + exit 1 |
| 135 | + fi |
| 136 | +
|
| 137 | + - name: Diagnose breaking changes for SentryObjC V10 |
| 138 | + if: always() |
| 139 | + run: | |
| 140 | + if diff -q "sdk_api_objc_v10_base.json" "sdk_api_objc_v10.json" > /dev/null; then |
| 141 | + echo "No SentryObjC V10 API changes detected." |
| 142 | + else |
| 143 | + echo "❌ SentryObjC V10 public API changes are detected. If they're intended run 'make generate-public-api' and commit the changes." |
| 144 | + diff "sdk_api_objc_v10_base.json" "sdk_api_objc_v10.json" || true |
| 145 | + exit 1 |
| 146 | + fi |
| 147 | +
|
| 148 | + - name: Diagnose ObjC/ObjCCompat V10 drift changes |
| 149 | + if: always() |
| 150 | + run: | |
| 151 | + if diff -q "sdk_api_objc_v10.diff_base.json" "sdk_api_objc_v10.diff.json" > /dev/null; then |
| 152 | + echo "No ObjC/ObjCCompat V10 drift changes detected." |
| 153 | + else |
| 154 | + echo "❌ ObjC/ObjCCompat V10 drift has changed. If intended run 'make generate-public-api' and commit the changes." |
| 155 | + diff "sdk_api_objc_v10.diff_base.json" "sdk_api_objc_v10.diff.json" || true |
| 156 | + exit 1 |
| 157 | + fi |
| 158 | +
|
115 | 159 | - name: Run CI Diagnostics |
116 | 160 | uses: ./.github/actions/ci-diagnostics |
117 | 161 | if: failure() |
|
0 commit comments