| name: 'ObjC CocoaPods' |
| |
| on: |
| push: |
| paths: |
| - '.github/workflows/objc_cocoapods.yml' |
| - 'Protobuf.podspec' |
| - 'objectivec/**' |
| - '!objectivec/DevTools/**' |
| - '!objectivec/ProtocolBuffers_*.xcodeproj/**' |
| - '!objectivec/Tests/**' |
| pull_request: |
| paths: |
| - '.github/workflows/objc_cocoapods.yml' |
| - 'Protobuf.podspec' |
| - 'objectivec/**' |
| - '!objectivec/DevTools/**' |
| - '!objectivec/ProtocolBuffers_*.xcodeproj/**' |
| - '!objectivec/Tests/**' |
| |
| jobs: |
| pod-lib-lint: |
| runs-on: macos-latest |
| strategy: |
| fail-fast: false |
| matrix: |
| # Add back 'watchos'. See CocoaPods/CocoaPods#11558 |
| PLATFORM: ["ios", "macos", "tvos"] |
| CONFIGURATION: ["Debug", "Release"] |
| steps: |
| - uses: actions/checkout@v2 |
| - name: Pod lib lint |
| run: | |
| pod lib lint --verbose \ |
| --configuration=${{ matrix.CONFIGURATION }} \ |
| --platforms=${{ matrix.PLATFORM }} \ |
| Protobuf.podspec |