Skip to content

Commit 00d73a4

Browse files
authored
Turn on unit test for FirebasePerformance. (#7495)
1 parent 1d09fdf commit 00d73a4

File tree

2 files changed

+25
-17
lines changed

2 files changed

+25
-17
lines changed

.github/workflows/test_coverage.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
runs-on: macOS-latest
4646
strategy:
4747
matrix:
48-
target: [ios]
48+
target: [iOS]
4949
steps:
5050
- uses: actions/checkout@v2
5151
- name: Setup Bundler
@@ -64,7 +64,7 @@ jobs:
6464
runs-on: macOS-latest
6565
strategy:
6666
matrix:
67-
target: [ios]
67+
target: [iOS]
6868
steps:
6969
- uses: actions/checkout@v2
7070
- name: Setup Bundler
@@ -83,7 +83,7 @@ jobs:
8383
runs-on: macOS-latest
8484
strategy:
8585
matrix:
86-
target: [ios]
86+
target: [iOS]
8787
steps:
8888
- uses: actions/checkout@v2
8989
- name: Setup Bundler
@@ -102,7 +102,7 @@ jobs:
102102
runs-on: macOS-latest
103103
strategy:
104104
matrix:
105-
target: [ios]
105+
target: [iOS]
106106
steps:
107107
- uses: actions/checkout@v2
108108
- name: Setup Bundler
@@ -121,7 +121,7 @@ jobs:
121121
runs-on: macOS-latest
122122
strategy:
123123
matrix:
124-
target: [ios]
124+
target: [iOS]
125125
steps:
126126
- uses: actions/checkout@v2
127127
- name: Setup Bundler
@@ -141,7 +141,7 @@ jobs:
141141
runs-on: macOS-latest
142142
strategy:
143143
matrix:
144-
target: [ios]
144+
target: [iOS]
145145
steps:
146146
- uses: actions/checkout@v2
147147
- name: Setup Bundler
@@ -160,7 +160,7 @@ jobs:
160160
runs-on: macOS-latest
161161
strategy:
162162
matrix:
163-
target: [ios]
163+
target: [iOS]
164164
steps:
165165
- uses: actions/checkout@v2
166166
- name: Setup Bundler
@@ -179,7 +179,7 @@ jobs:
179179
runs-on: macOS-latest
180180
strategy:
181181
matrix:
182-
target: [ios]
182+
target: [iOS]
183183
steps:
184184
- uses: actions/checkout@v2
185185
- name: Setup Bundler
@@ -198,7 +198,7 @@ jobs:
198198
runs-on: macOS-latest
199199
strategy:
200200
matrix:
201-
target: [ios]
201+
target: [iOS]
202202
steps:
203203
- uses: actions/checkout@v2
204204
- name: Setup Bundler
@@ -217,7 +217,7 @@ jobs:
217217
runs-on: macOS-latest
218218
strategy:
219219
matrix:
220-
target: [ios]
220+
target: [iOS]
221221
steps:
222222
- uses: actions/checkout@v2
223223
- name: Setup Bundler
@@ -236,7 +236,7 @@ jobs:
236236
runs-on: macOS-latest
237237
strategy:
238238
matrix:
239-
target: [ios]
239+
target: [iOS]
240240
steps:
241241
- uses: actions/checkout@v2
242242
- name: Setup Bundler
@@ -255,7 +255,7 @@ jobs:
255255
runs-on: macOS-latest
256256
strategy:
257257
matrix:
258-
target: [ios]
258+
target: [iOS]
259259
steps:
260260
- uses: actions/checkout@v2
261261
- name: Setup Bundler

scripts/code_coverage_report/pod_test_code_coverage_report.sh

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,17 @@ output_path="${3:-${default_output_path}}"
2121
if [ -d "/Users/runner/Library/Developer/Xcode/DerivedData" ]; then
2222
rm -r /Users/runner/Library/Developer/Xcode/DerivedData/*
2323
fi
24-
# Run unit tests of pods and put xcresult bundles into output_path, which
25-
# should be a targeted dir of actions/upload-artifact in workflows.
26-
# In code coverage workflow, files under output_path will be uploaded to
27-
# Github Actions.
28-
scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb "${SDK}".podspec --platforms="${platform}" --test-specs=unit
24+
25+
# Setup for pod unit tests
26+
if [ $SDK == "FirebasePerformance" ]; then
27+
scripts/setup_bundler.sh
28+
scripts/third_party/travis/retry.sh scripts/build.sh Performance ${platform} unit
29+
else
30+
# Run unit tests of pods and put xcresult bundles into output_path, which
31+
# should be a targeted dir of actions/upload-artifact in workflows.
32+
# In code coverage workflow, files under output_path will be uploaded to
33+
# Github Actions.
34+
scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb "${SDK}".podspec --platforms="$(tr '[:upper:]' '[:lower:]'<<<${platform})" --test-specs=unit
35+
fi
36+
2937
find /Users/runner/Library/Developer/Xcode/DerivedData -type d -regex ".*/.*\.xcresult" -execdir cp -R '{}' "${output_path}" \;

0 commit comments

Comments
 (0)