Skip to content

docs(feedback): add a warning to autoInject property about SwiftUI #546

docs(feedback): add a warning to autoInject property about SwiftUI

docs(feedback): add a warning to autoInject property about SwiftUI #546

Workflow file for this run

name: API Stability Check
on:
pull_request:
paths:
- "Sources/**"
- "test-server/**"
- ".github/workflows/api-stability.yml"
- Sentry.xcworkspace/**
- Sentry.xcodeproj/**
- "Package.swift"
- "scripts/build-xcframework-local.sh"
jobs:
api-stability:
runs-on: macos-15
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- run: ./scripts/ci-select-xcode.sh 16.3
- name: Generate HEAD SDK
run: |
mv sdk_api.json sdk_api_base.json
make generate-public-api
- name: Diagnose breaking changes
run: |
if diff -q "sdk_api_base.json" "sdk_api.json" > /dev/null; then
echo "No API changes detected."
else
echo "❌ Public API changes are detected. If they’re intended run "make generate-public-api" and commit the changes."
diff "sdk_api_base.json" "sdk_api.json" || true
xcrun --sdk iphoneos swift-api-digester \
-diagnose-sdk \
-o result.json \
-input-paths sdk_api_base.json \
-input-paths sdk_api.json \
-json \
-v
cat result.json
exit 1
fi