Skip to content

Commit 161fdc5

Browse files
authored
Align Auth SwiftAPI.swift testing (#12091)
1 parent dc5ede0 commit 161fdc5

File tree

6 files changed

+698
-498
lines changed

6 files changed

+698
-498
lines changed

.github/workflows/auth.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,10 @@ jobs:
9393
include:
9494
- os: macos-12
9595
xcode: Xcode_14.2
96+
test: spm
9697
- os: macos-13
9798
xcode: Xcode_15.0.1
99+
test: spmbuildonly
98100
runs-on: ${{ matrix.os }}
99101
steps:
100102
- uses: actions/checkout@v3
@@ -106,7 +108,7 @@ jobs:
106108
- name: Initialize xcodebuild
107109
run: scripts/setup_spm_tests.sh
108110
- name: Unit Tests
109-
run: scripts/third_party/travis/retry.sh ./scripts/build.sh AuthUnit ${{ matrix.target }} spm
111+
run: scripts/third_party/travis/retry.sh ./scripts/build.sh AuthUnit ${{ matrix.target }} ${{ matrix.test }}
110112

111113
catalyst:
112114
# Don't run on private repo unless it is a PR.

FirebaseAuth.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ supports email and password accounts, as well as several 3rd party authenticatio
6565
:osx => osx_deployment_target,
6666
:tvos => tvos_deployment_target
6767
}
68-
unit_tests.source_files = 'FirebaseAuth/Tests/Unit/*.[mh]'
68+
unit_tests.source_files = 'FirebaseAuth/Tests/Unit*/**/*.{m,h,swift}'
6969
unit_tests.osx.exclude_files = [
7070
'FirebaseAuth/Tests/Unit/FIRAuthAPNSTokenManagerTests.m',
7171
'FirebaseAuth/Tests/Unit/FIRAuthAPNSTokenTests.m',

FirebaseAuth/Tests/Sample/AuthSample.xcodeproj/project.pbxproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
DED400C2243E571500BF6D56 /* BYOAuthTests.m in Sources */ = {isa = PBXBuildFile; fileRef = DED400BC243E571500BF6D56 /* BYOAuthTests.m */; };
5959
DED400C3243E571500BF6D56 /* FIRAuthE2eTests.m in Sources */ = {isa = PBXBuildFile; fileRef = DED400BE243E571500BF6D56 /* FIRAuthE2eTests.m */; };
6060
DED400C4243E571500BF6D56 /* FIRAuthE2eTestsBase.m in Sources */ = {isa = PBXBuildFile; fileRef = DED400BF243E571500BF6D56 /* FIRAuthE2eTestsBase.m */; };
61-
DEF68E952799B9970064CC92 /* SwiftAPI.swift in Sources */ = {isa = PBXBuildFile; fileRef = DEF68E942799B9970064CC92 /* SwiftAPI.swift */; };
6261
/* End PBXBuildFile section */
6362

6463
/* Begin PBXContainerItemProxy section */
@@ -181,7 +180,6 @@
181180
DED400BD243E571500BF6D56 /* FIRAuthE2eTestsBase.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FIRAuthE2eTestsBase.h; sourceTree = "<group>"; };
182181
DED400BE243E571500BF6D56 /* FIRAuthE2eTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FIRAuthE2eTests.m; sourceTree = "<group>"; };
183182
DED400BF243E571500BF6D56 /* FIRAuthE2eTestsBase.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FIRAuthE2eTestsBase.m; sourceTree = "<group>"; };
184-
DEF68E942799B9970064CC92 /* SwiftAPI.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SwiftAPI.swift; sourceTree = "<group>"; };
185183
/* End PBXFileReference section */
186184

187185
/* Begin PBXFrameworksBuildPhase section */

0 commit comments

Comments
 (0)