Просмотр исходного кода

Split xcodebuild test into two phases.

Peter Andrews 5 лет назад
Родитель
Сommit
a749770454
1 измененных файлов с 8 добавлено и 1 удалено
  1. 8 1
      .github/workflows/tests.yml

+ 8 - 1
.github/workflows/tests.yml

@@ -21,10 +21,17 @@ jobs:
     - uses: actions/checkout@v2
     - uses: actions/checkout@v2
     - name: Initialize xcodebuild
     - name: Initialize xcodebuild
       run: xcodebuild -list
       run: xcodebuild -list
+    - name: Build unit test target
+      run: |
+        xcodebuild \
+          -scheme GoogleSignIn \
+          -sdk 'iphonesimulator' \
+          -destination 'platform=iOS Simulator,name=iPhone 11' \
+          build-for-testing
     - name: Run unit test target
     - name: Run unit test target
       run: |
       run: |
         xcodebuild \
         xcodebuild \
           -scheme GoogleSignIn \
           -scheme GoogleSignIn \
           -sdk 'iphonesimulator' \
           -sdk 'iphonesimulator' \
           -destination 'platform=iOS Simulator,name=iPhone 11' \
           -destination 'platform=iOS Simulator,name=iPhone 11' \
-          test
+          test-without-building