diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8e1e23183..0ae063b7e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -70,3 +70,16 @@ jobs: -scheme PostHogExampleWithPods \ -destination generic/platform=ios \ SWIFT_VERSION=5 | xcpretty + + podspec-lint: + runs-on: macos-15 + name: CocoaPods package lint + steps: + - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 + - uses: maxim-lobanov/setup-xcode@ed7a3b1fda3918c0306d1b724322adc0b8cc0a90 # v1.7.0 + with: + xcode-version: latest-stable + - name: Install CocoaPods + run: gem install cocoapods + - name: Lint podspec + run: pod lib lint PostHog.podspec --allow-warnings --skip-tests