@@ -4,101 +4,204 @@ on: [push]
44
55jobs :
66 verify-cocoapods-iOS :
7- runs-on : macos-15
7+ runs-on : macos-latest
8+ timeout-minutes : 30
89 steps :
910 - name : Check out code
1011 uses : actions/checkout@v4
1112 - name : Install pod, build project and run tests
1213 run : |
14+ mkdir -p test-results
1315 echo "branch=${{ github.ref }}" >> $GITHUB_OUTPUT
1416 ./scripts/getSimulator
1517 DESTINATION="platform=iOS Simulator,name=$(cat ./iphoneSim),OS=latest"
1618 cd SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/
1719 pod install
18- xcodebuild test -scheme iOSReleaseTest -workspace iOSReleaseTest.xcworkspace -destination "$DESTINATION" | xcpretty && exit ${PIPESTATUS[0]}
20+ xcodebuild -configuration Debug \
21+ -scheme iOSReleaseTest -workspace iOSReleaseTest.xcworkspace \
22+ -sdk iphonesimulator \
23+ -destination "$DESTINATION" \
24+ CODE_SIGNING_ALLOWED=NO \
25+ CODE_SIGNING_REQUIRED=NO \
26+ PROVISIONING_PROFILE_SPECIFIER="" \
27+ DEVELOPMENT_TEAM="" \
28+ -resultBundlePath ../../test-results/ios-cocoapods.xcresult \
29+ clean test
30+ - name : Upload test report
31+ uses : actions/upload-artifact@v4
32+ if : always()
33+ with :
34+ name : test-report-cocoapods-iOS
35+ path : test-results
1936 verify-carthage-iOS :
20- runs-on : macos-15
37+ runs-on : macos-latest
38+ timeout-minutes : 30
2139 steps :
2240 - name : Check out code
2341 uses : actions/checkout@v4
2442 - name : Create Cart File, run carthage command, build project and run tests
2543 env :
2644 BRANCH_NAME : ${{ github.head_ref || github.ref_name }}
2745 run : |
46+ mkdir -p test-results
2847 CURR_DIR=$(PWD)
2948 ./scripts/getSimulator
3049 DESTINATION="platform=iOS Simulator,name=$(cat ./iphoneSim),OS=latest"
3150 cd SDKIntegrationTestApps/iOSReleaseTest-Carthage/
3251 echo "git \"file://${CURR_DIR}\" \"$BRANCH_NAME\" " >> cartfile
3352 carthage update --use-xcframeworks
34- xcodebuild test -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj -destination "$DESTINATION" | xcpretty && exit ${PIPESTATUS[0]}
53+ xcodebuild -configuration Debug \
54+ -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj \
55+ -sdk iphonesimulator \
56+ -destination "$DESTINATION" \
57+ CODE_SIGNING_ALLOWED=NO \
58+ CODE_SIGNING_REQUIRED=NO \
59+ PROVISIONING_PROFILE_SPECIFIER="" \
60+ DEVELOPMENT_TEAM="" \
61+ -resultBundlePath ../../test-results/ios-carthage.xcresult \
62+ clean test
63+ - name : Upload test report
64+ uses : actions/upload-artifact@v4
65+ if : always()
66+ with :
67+ name : test-report-carthage-iOS
68+ path : test-results
3569 verify-SPM-iOS :
36- runs-on : macos-15
70+ runs-on : macos-latest
71+ timeout-minutes : 30
3772 steps :
3873 - name : Check out code
3974 uses : actions/checkout@v4
4075 - name : build project and run tests
4176 run : |
77+ mkdir -p test-results
4278 ./scripts/getSimulator
4379 DESTINATION="platform=iOS Simulator,name=$(cat ./iphoneSim),OS=latest"
4480 cd SDKIntegrationTestApps/iOSReleaseTest-SPM/
45- xcodebuild test -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj -destination "$DESTINATION" | xcpretty && exit ${PIPESTATUS[0]}
81+ xcodebuild -configuration Debug \
82+ -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj \
83+ -sdk iphonesimulator \
84+ -destination "$DESTINATION" \
85+ CODE_SIGNING_ALLOWED=NO \
86+ CODE_SIGNING_REQUIRED=NO \
87+ PROVISIONING_PROFILE_SPECIFIER="" \
88+ DEVELOPMENT_TEAM="" \
89+ -resultBundlePath ../../test-results/ios-spm.xcresult \
90+ clean test
91+ - name : Upload test report
92+ uses : actions/upload-artifact@v4
93+ if : always()
94+ with :
95+ name : test-report-spm-iOS
96+ path : test-results
4697 verify-manually-with-xcframework-iOS :
47- runs-on : macos-15
98+ runs-on : macos-latest
99+ timeout-minutes : 30
48100 steps :
49101 - name : Check out code
50102 uses : actions/checkout@v4
51103 - name : build xcframework, then build project and run tests
52104 run : |
105+ mkdir -p test-results
53106 ./scripts/getSimulator
54107 DESTINATION="platform=iOS Simulator,name=$(cat ./iphoneSim),OS=latest"
55108 xcodebuild -scheme xcframework
56109 cd SDKIntegrationTestApps/iOSReleaseTest-Manual/
57- xcodebuild test -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj -destination "$DESTINATION" | xcpretty && exit ${PIPESTATUS[0]}
110+ xcodebuild -configuration Debug \
111+ -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj \
112+ -sdk iphonesimulator \
113+ -destination "$DESTINATION" \
114+ CODE_SIGNING_ALLOWED=NO \
115+ CODE_SIGNING_REQUIRED=NO \
116+ PROVISIONING_PROFILE_SPECIFIER="" \
117+ DEVELOPMENT_TEAM="" \
118+ -resultBundlePath ../../test-results/ios-xcframework.xcresult \
119+ clean test
120+ - name : Upload test report
121+ uses : actions/upload-artifact@v4
122+ if : always()
123+ with :
124+ name : test-report-manual-xcframework-iOS
125+ path : test-results
58126 verify-manually-with-StaticFramework-iOS :
59- runs-on : macos-15
127+ runs-on : macos-latest
128+ timeout-minutes : 30
60129 steps :
61130 - name : Check out code
62131 uses : actions/checkout@v4
63132 - name : build static xcframework, then build project and run tests
64133 run : |
134+ mkdir -p test-results
65135 ./scripts/getSimulator
66136 DESTINATION="platform=iOS Simulator,name=$(cat ./iphoneSim),OS=latest"
67137 xcodebuild -scheme static-xcframework
68138 cd SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/
69- xcodebuild test -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj -destination "$DESTINATION" | xcpretty && exit ${PIPESTATUS[0]}
139+ xcodebuild -configuration Debug \
140+ -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj \
141+ -sdk iphonesimulator \
142+ -destination "$DESTINATION" \
143+ CODE_SIGNING_ALLOWED=NO \
144+ CODE_SIGNING_REQUIRED=NO \
145+ PROVISIONING_PROFILE_SPECIFIER="" \
146+ DEVELOPMENT_TEAM="" \
147+ -resultBundlePath ../../test-results/ios-static-framework.xcresult \
148+ clean test
149+ - name : Upload test report
150+ uses : actions/upload-artifact@v4
151+ if : always()
152+ with :
153+ name : test-report-manual-static-iOS
154+ path : test-results
70155 verify-cocoapods-tvOS :
71- runs-on : macos-15
156+ runs-on : macos-latest
157+ timeout-minutes : 30
72158 steps :
73159 - name : Check out code
74160 uses : actions/checkout@v4
75161 - name : Install pod, build project and run tests
76162 run : |
163+ mkdir -p test-results
77164 ./scripts/getSimulator
78165 DESTINATION="platform=tvOS Simulator,name=$(cat ./appleTVSim),OS=latest"
79166 cd SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/
80167 pod install
81- xcodebuild test -scheme tvOSReleaseTest -workspace tvOSReleaseTest.xcworkspace -destination "$DESTINATION" | xcpretty && exit ${PIPESTATUS[0]}
168+ xcodebuild test -scheme tvOSReleaseTest -workspace tvOSReleaseTest.xcworkspace -destination "$DESTINATION" -resultBundlePath ../../test-results/tvOS-cocoapods.xcresult
169+ - name : Upload test report
170+ uses : actions/upload-artifact@v4
171+ if : always()
172+ with :
173+ name : test-report-cocoapods-tvOS
174+ path : test-results
82175 verify-carthage-tvOS :
83- runs-on : macos-15
176+ runs-on : macos-latest
177+ timeout-minutes : 30
84178 steps :
85179 - name : Check out code
86180 uses : actions/checkout@v4
87181 - name : Verify Integration using Carthage for tvOS
88182 run : |
183+ mkdir -p test-results
89184 ./scripts/getSimulator
90185 DESTINATION="platform=tvOS Simulator,name=$(cat ./appleTVSim),OS=latest"
91186 cd SDKIntegrationTestApps/tvOSReleaseTest-Carthage/
92187 echo "Skipping it ... its broken"
93188 verify-manually-with-xcframework-tvOS :
94- runs-on : macos-15
189+ runs-on : macos-latest
190+ timeout-minutes : 30
95191 steps :
96192 - name : Check out code
97193 uses : actions/checkout@v4
98194 - name : build xcframework, then build project and run tests
99195 run : |
196+ mkdir -p test-results
100197 ./scripts/getSimulator
101198 DESTINATION="platform=tvOS Simulator,name=$(cat ./appleTVSim),OS=latest"
102199 xcodebuild -scheme xcframework
103200 cd SDKIntegrationTestApps/tvOSReleaseTest-Manual/
104- xcodebuild test -scheme tvOSReleaseTest -project tvOSReleaseTest.xcodeproj -destination "$DESTINATION" | xcpretty && exit ${PIPESTATUS[0]}
201+ xcodebuild test -scheme tvOSReleaseTest -project tvOSReleaseTest.xcodeproj -destination "$DESTINATION" -resultBundlePath ../../test-results/tvOS-xcframework.xcresult
202+ - name : Upload test report
203+ uses : actions/upload-artifact@v4
204+ if : always()
205+ with :
206+ name : test-report-manual-xcframework-tvOS
207+ path : test-results
0 commit comments