Skip to content

Commit ace7e85

Browse files
committed
[Infra] update the pod-lint of ci workflow
Avoid issues with missing commits in PRs from forked repository.
1 parent c9abc30 commit ace7e85

File tree

1 file changed

+19
-16
lines changed

1 file changed

+19
-16
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,25 @@ jobs:
1515
- uses: actions/checkout@v4
1616
- run: |
1717
echo "to be done"
18-
# lint-pod:
19-
# runs-on: lynx-darwin-14-medium
20-
# steps:
21-
# - name: Download Source
22-
# uses: actions/[email protected]
23-
# - name: Install libyaml
24-
# run: brew install libyaml
25-
# - uses: ruby/setup-ruby@v1
26-
# with:
27-
# ruby-version: '2.6'
28-
# - name: Bundle Install
29-
# run: |-
30-
# SDKROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk bundle install --path .bundle
31-
# - name: Lint
32-
# run: |-
33-
# POD_VERSION=${{ github.event.pull_request.head.sha }} bundle exec pod spec lint PrimJS.podspec --verbose --skip-import-validation --allow-warnings
18+
lint-pod:
19+
runs-on: lynx-darwin-14-medium
20+
steps:
21+
- name: Download Source
22+
uses: actions/[email protected]
23+
with:
24+
repository: ${{ github.event.pull_request.head.repo.full_name }}
25+
ref: ${{ github.event.pull_request.head.sha }}
26+
- name: Install libyaml
27+
run: brew install libyaml
28+
- uses: ruby/setup-ruby@v1
29+
with:
30+
ruby-version: '2.6'
31+
- name: Bundle Install
32+
run: |-
33+
SDKROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk bundle install --path .bundle
34+
- name: Lint
35+
run: |-
36+
POD_VERSION=${{ github.event.pull_request.head.sha }} bundle exec pod spec lint PrimJS.podspec --verbose --skip-import-validation --allow-warnings
3437
3538
check-unittests-linux:
3639
runs-on: lynx-ubuntu-22.04-medium

0 commit comments

Comments
 (0)