Skip to content

Commit 03f6f06

Browse files
authored
Don't lint OpenPassObjC podspec during PR tests (#67)
1 parent fbea413 commit 03f6f06

File tree

3 files changed

+41
-17
lines changed

3 files changed

+41
-17
lines changed

Diff for: .github/workflows/cocoapods-publish.yml

+17-14
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,16 @@ name: cocoapods-publish
33
on:
44
workflow_dispatch:
55
inputs:
6-
version:
7-
description: 'Tag name for release (e.g. "1.0.0")'
8-
required: true
9-
type: string
6+
name:
7+
type: choice
8+
description: CocoaPod to Publish
9+
options:
10+
- OpenPass
11+
- OpenPassObjC
12+
version:
13+
description: 'Tag name for release (e.g. "1.0.0")'
14+
required: true
15+
type: string
1016

1117
# https://github.com/actions/runner-images/?tab=readme-ov-file#available-images
1218
jobs:
@@ -19,22 +25,19 @@ jobs:
1925
- name: Set up
2026
run: mkdir tmp
2127

22-
- name: Update podspecs
28+
- name: Update podspec
2329
run: |
24-
jq --arg VERSION "${{ inputs.version }}" '. | .version |= $VERSION | .source.tag |= $VERSION' OpenPass.podspec.json > tmp/OpenPass.podspec.json
25-
jq --arg VERSION "${{ inputs.version }}" '. | .version |= $VERSION | .source.tag |= $VERSION' OpenPassObjC.podspec.json > tmp/OpenPassObjC.podspec.json
26-
27-
- name: Lint podspecs
30+
jq --arg VERSION "${{ inputs.version }}" '. | .version |= $VERSION | .source.tag |= $VERSION' ${{ github.event.inputs.name }}.podspec.json > tmp/${{ github.event.inputs.name }}.podspec.json
31+
32+
- name: Lint podspec
2833
run: |
29-
pod spec lint tmp/OpenPass.podspec.json
30-
pod spec lint tmp/OpenPassObjC.podspec.json
34+
pod spec lint tmp/${{ github.event.inputs.name }}.podspec.json
3135
32-
- name: Push podspecs to Cocoapods trunk
36+
- name: Push podspec to Cocoapods trunk
3337
env:
3438
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
3539
run: |
36-
pod trunk push tmp/OpenPass.podspec.json
37-
pod trunk push tmp/OpenPassObjC.podspec.json
40+
pod trunk push tmp/${{ github.event.inputs.name }}.podspec.json
3841
3942
- name: Clean up
4043
run: rm -r tmp

Diff for: .github/workflows/lint-objc-podspec.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Lint Pull Requests for OpenPassObjC
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- OpenPassObjC.podspec.json
7+
8+
# this allows us to manually run this job
9+
workflow_dispatch:
10+
11+
jobs:
12+
13+
lint-podspec:
14+
name: Lint OpenPassObjC Podspec
15+
runs-on: macos-14
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Select Xcode 16.1
21+
run: sudo xcode-select -s /Applications/Xcode_16.1.app
22+
23+
- name: Lint OpenPass podspec
24+
run: pod lib lint OpenPassObjC.podspec.json --verbose

Diff for: .github/workflows/test-pull-request.yml

-3
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ jobs:
4141
- name: Lint OpenPass podspec
4242
run: pod lib lint OpenPass.podspec.json --verbose
4343

44-
- name: Lint OpenPassObjC podspec
45-
run: pod lib lint OpenPassObjC.podspec.json --verbose
46-
4744
device-tests:
4845
uses: ./.github/workflows/device-tests.yml
4946
with:

0 commit comments

Comments
 (0)