Add a github action workflow to run CocoaPods validation. (#9800)
- Run for all Apple configurations/platforms. - Limit the action to only run when the ObjC source change. - Document why the CocoaPods doesn't run the tests during the validation. The kokoro objectivec_cocoapods_integration configuration can likely be retired by retiring this.pull/9858/head
parent
125dfd343e
commit
35fcbfd298
2 changed files with 44 additions and 0 deletions
@ -0,0 +1,36 @@ |
|||||||
|
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: |
||||||
|
PLATFORM: ["ios", "macos", "tvos", "watchos"] |
||||||
|
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 |
Loading…
Reference in new issue