Skip to content

Commit 451a6c2

Browse files
authored
Restore Catalyst unit testing in CI (#7185)
1 parent 6cd2938 commit 451a6c2

26 files changed

+89
-51
lines changed

.github/workflows/abtesting.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ jobs:
6868
- name: Setup Bundler
6969
run: scripts/setup_bundler.sh
7070
- name: Setup project and Build for Catalyst
71-
# Only build the unit tests on Catalyst. Test stopped working when GHA moved to Xcode 11.4.1.
72-
run: scripts/test_catalyst.sh FirebaseABTesting build FirebaseABTesting-Unit-unit
71+
run: scripts/test_catalyst.sh FirebaseABTesting test FirebaseABTesting-Unit-unit
7372

7473
quickstart:
7574
# Don't run on private repo unless it is a PR.

.github/workflows/appdistribution.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,18 @@ jobs:
4343
- name: iOS Unit Tests
4444
run: scripts/third_party/travis/retry.sh ./scripts/build.sh AppDistributionUnit iOS spm
4545

46+
catalyst:
47+
# Don't run on private repo unless it is a PR.
48+
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
49+
50+
runs-on: macOS-latest
51+
steps:
52+
- uses: actions/checkout@v2
53+
- name: Setup Bundler
54+
run: scripts/setup_bundler.sh
55+
- name: Setup project and Build for Catalyst
56+
run: scripts/test_catalyst.sh FirebaseAppDistribution test FirebaseAppDistribution-Unit-unit
57+
4658
appdistribution-cron-only:
4759
if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
4860

.github/workflows/auth.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
- name: Setup Bundler
8888
run: scripts/setup_bundler.sh
8989
- name: Setup project and Build for Catalyst
90-
# Only build the unit tests on Catalyst
90+
# Only build the unit tests on Catalyst. Their keychain reliance causes several failures.
9191
run: scripts/test_catalyst.sh FirebaseAuth build FirebaseAuth-Unit-unit
9292

9393
quickstart:

.github/workflows/core-diagnostics.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
- name: Setup Bundler
5353
run: scripts/setup_bundler.sh
5454
- name: Setup project and Build Catalyst
55-
run: scripts/test_catalyst.sh FirebaseCoreDiagnostics build
55+
run: scripts/test_catalyst.sh FirebaseCoreDiagnostics test FirebaseCoreDiagnostics-Unit-unit
5656

5757
corediagnostics-cron-only:
5858
# Don't run on private repo.

.github/workflows/core.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
- name: Setup Bundler
6868
run: scripts/setup_bundler.sh
6969
- name: Setup project and Build Catalyst
70-
run: scripts/test_catalyst.sh FirebaseCore build
70+
run: scripts/test_catalyst.sh FirebaseCore test FirebaseCore-Unit-unit
7171

7272
core-cron-only:
7373
# Don't run on private repo.

.github/workflows/crashlytics.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
- name: Setup Bundler
7272
run: scripts/setup_bundler.sh
7373
- name: Setup project and Build for Catalyst
74-
run: scripts/test_catalyst.sh FirebaseCrashlytics build FirebaseCrashlytics-Unit-unit
74+
run: scripts/test_catalyst.sh FirebaseCrashlytics test FirebaseCrashlytics-Unit-unit
7575

7676
quickstart:
7777
# Don't run on private repo unless it is a PR.

.github/workflows/database.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@ jobs:
7878
- name: Setup Bundler
7979
run: scripts/setup_bundler.sh
8080
- name: Setup project and Build for Catalyst
81-
# Only build the unit tests on Catalyst. Test stopped working when GHA moved to Xcode 11.4.1.
82-
run: scripts/test_catalyst.sh FirebaseDatabase build FirebaseDatabase-Unit-unit
81+
run: scripts/test_catalyst.sh FirebaseDatabase test FirebaseDatabase-Unit-unit
8382

8483
# Restore when FirebaseUI works with Firebase 7 (#6646)
8584
quickstart:

.github/workflows/datatransport.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ jobs:
3737
- name: Setup Bundler
3838
run: scripts/setup_bundler.sh
3939
- name: Setup project and Test Catalyst
40-
# Only build the unit tests on Catalyst. Test stopped working when GHA moved to Xcode 11.4.1.
4140
run: scripts/third_party/travis/retry.sh scripts/test_catalyst.sh GoogleDataTransport build
4241

4342
watchos-testapp:

.github/workflows/functions.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ jobs:
6868
- name: Setup Bundler
6969
run: scripts/setup_bundler.sh
7070
- name: Setup project and Build for Catalyst
71-
# Only build the unit tests on Catalyst. Test stopped working when GHA moved to Xcode 11.4.1.
72-
run: scripts/test_catalyst.sh FirebaseFunctions build FirebaseFunctions-Unit-unit
71+
run: scripts/test_catalyst.sh FirebaseFunctions test FirebaseFunctions-Unit-unit
7372

7473
# Restore when FirebaseUI works with Firebase 7 (#6646)
7574
quickstart:

.github/workflows/google-utilities-components.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ jobs:
3838
- name: Setup Bundler
3939
run: scripts/setup_bundler.sh
4040
- name: Setup project and Build for Catalyst
41-
# Only build the unit tests on Catalyst. Test stopped working when GHA moved to Xcode 11.4.1.
42-
run: scripts/test_catalyst.sh GoogleUtilitiesComponents build GoogleUtilitiesComponents-Unit-unit
41+
run: scripts/test_catalyst.sh GoogleUtilitiesComponents test GoogleUtilitiesComponents-Unit-unit
4342

4443
utilities-cron-only:
4544
# Don't run on private repo.

0 commit comments

Comments
 (0)