Skip to content

Commit 3a0e868

Browse files
authored
Always retry pod lib lint (#4854)
1 parent 9e5c905 commit 3a0e868

File tree

4 files changed

+57
-14
lines changed

4 files changed

+57
-14
lines changed

.github/workflows/core.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Setup Bundler
2222
run: scripts/setup_bundler.sh
2323
- name: Build and test
24-
run: scripts/pod_lib_lint.rb FirebaseCore.podspec --platforms=${{ matrix.target }}
24+
run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCore.podspec --platforms=${{ matrix.target }}
2525

2626
core-cron-only:
2727
runs-on: macos-latest
@@ -40,4 +40,4 @@ jobs:
4040
- name: Setup Bundler
4141
run: scripts/setup_bundler.sh
4242
- name: PodLibLint Core Cron
43-
run: scripts/third_party/travis/retry.sh ./scripts/pod_lib_lint.rb FirebaseCore.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
43+
run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCore.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}

.github/workflows/dynamiclinks.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,29 @@ on:
1010
- cron: '0 7 * * *'
1111

1212
jobs:
13-
dynamiclinks:
13+
pod_lib_lint:
1414
runs-on: macOS-latest
1515
steps:
1616
- uses: actions/checkout@v1
1717
- name: Setup Bundler
18-
run: ./scripts/setup_bundler.sh
18+
run: scripts/setup_bundler.sh
1919
- name: FirebaseDynamicLinks
20-
run: ./scripts/pod_lib_lint.rb FirebaseDynamicLinks.podspec
20+
run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseDynamicLinks.podspec
21+
22+
dynamiclinks-cron-only:
23+
runs-on: macos-latest
24+
if: github.event_name == 'schedule'
25+
strategy:
26+
matrix:
27+
target: [ios, tvos, macos]
28+
flags: [
29+
'--use-modular-headers',
30+
'--use-libraries'
31+
]
32+
needs: pod_lib_lint
33+
steps:
34+
- uses: actions/checkout@v2
35+
- name: Setup Bundler
36+
run: scripts/setup_bundler.sh
37+
- name: PodLibLint Storage Cron
38+
run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseDynamicLinks.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}

.github/workflows/firestore.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,6 @@ jobs:
145145

146146
- name: Pod lib lint
147147
run: |
148-
scripts/pod_lib_lint.rb FirebaseFirestore.podspec \
148+
scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseFirestore.podspec \
149149
--platforms=ios \
150150
--allow-warnings

.github/workflows/storage.yml

Lines changed: 33 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,42 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v1
1717
- name: Setup Bundler
18-
run: ./scripts/setup_bundler.sh
18+
run: scripts/setup_bundler.sh
1919
- name: Install Secret GoogleService-Info.plist
2020
env:
2121
plist_secret: ${{ secrets.StoragePlistSecret }}
2222
run: ./scripts/decrypt_gha_secret.sh scripts/gha-encrypted/storage-db-plist.gpg \
2323
FirebaseStorage/Tests/Integration/Resources/GoogleService-Info.plist "$plist_secret"
2424
- name: BuildAndTest # can be replaced with pod lib lint with CocoaPods 1.10
25-
run: scripts/third_party/travis/retry.sh ./scripts/build.sh Storage all
26-
- name: PodLibLint iOS
27-
run: ./scripts/pod_lib_lint.rb FirebaseStorage.podspec --skip-tests --platforms=ios
28-
- name: PodLibLint macOS
29-
run: ./scripts/pod_lib_lint.rb FirebaseStorage.podspec --skip-tests --platforms=macos
30-
- name: PodLibLint tvOS
31-
run: ./scripts/pod_lib_lint.rb FirebaseStorage.podspec --skip-tests --platforms=tvos
25+
run: scripts/third_party/travis/retry.sh scripts/build.sh Storage all
26+
27+
pod_lib_lint:
28+
runs-on: macOS-latest
29+
30+
strategy:
31+
matrix:
32+
target: [ios, tvos, macos]
33+
steps:
34+
- uses: actions/checkout@v2
35+
- name: Setup Bundler
36+
run: scripts/setup_bundler.sh
37+
- name: Build and test
38+
run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseStorage.podspec --skip-tests --platforms=${{ matrix.target }}
39+
40+
storage-cron-only:
41+
runs-on: macos-latest
42+
if: github.event_name == 'schedule'
43+
strategy:
44+
matrix:
45+
target: [ios, tvos, macos]
46+
flags: [
47+
'--skip-tests --use-modular-headers',
48+
'--skip-tests --use-libraries'
49+
]
50+
needs: pod_lib_lint
51+
steps:
52+
- uses: actions/checkout@v2
53+
- name: Setup Bundler
54+
run: scripts/setup_bundler.sh
55+
- name: PodLibLint Storage Cron
56+
run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseStorage.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}

0 commit comments

Comments
 (0)