Skip to content

fix: Don't override sentry-trace and baggage headers #7335

fix: Don't override sentry-trace and baggage headers

fix: Don't override sentry-trace and baggage headers #7335

Workflow file for this run

name: lint
on:
push:
branches:
- main
paths:
- 'Sources/**'
- 'Tests/**'
- 'test-server/**'
- 'Samples/**'
- '.github/workflows/lint.yml'
- 'scripts/ci-select-xcode.sh'
- 'scripts/no-changes-in-high-risk-files.sh'
pull_request:
paths:
- 'Sources/**'
- 'Tests/**'
- 'test-server/**'
- 'Samples/**'
- '.github/workflows/lint.yml'
- 'scripts/ci-select-xcode.sh'
- 'scripts/no-changes-in-high-risk-files.sh'
- 'Sentry.xcodeproj/**'
- '*.podspec'
jobs:
swift-lint:
name: Swift Lint
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- run: swiftlint --version
- name: Run SwiftLint
run: swiftlint --strict
xcode-analyze:
name: Xcode Analyze
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- run: ./scripts/ci-select-xcode.sh
- run: make analyze
lint-podspec:
name: pod lint ${{ matrix.podspec}} ${{ matrix.library_type }} ${{ matrix.platform}}
runs-on: macos-13
strategy:
matrix:
podspec: ['Sentry', 'SentrySwiftUI']
platform: ['ios', 'macos', 'tvos', 'watchos']
library_type: ['dynamic', 'static']
steps:
- uses: actions/checkout@v4
- run: ./scripts/ci-select-xcode.sh
# We need to update the spec-repo, because it can happen that it is not up to date and then the lint fails.
- run: pod repo update
- name: Validate Podspec
run: ./scripts/pod-lib-lint.sh ${{ matrix.platform }} ${{ matrix.podspec}} ${{ matrix.library_type}}
lint-hybrid-sdk-podspec:
name: pod lint Sentry/HybridSDK
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- run: ./scripts/ci-select-xcode.sh
- run: pod repo update
- name: Validate HybridPod Podspec
run: pod lib lint ./Tests/HybridSDKTest/HybridPod.podspec --allow-warnings --verbose --platforms=ios "--include-podspecs={SentryPrivate.podspec,Sentry.podspec}"
validate-high-risk-files:
name: No changes in high risk files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: ./scripts/no-changes-in-high-risk-files.sh