|
16 | 16 | workflow_dispatch: |
17 | 17 |
|
18 | 18 | jobs: |
19 | | - buildandtest: |
20 | | - name: Build and Test Swift Package |
| 19 | + packageios: |
| 20 | + name: Build and Test Swift Package iOS |
21 | 21 | uses: StanfordBDHG/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2 |
22 | 22 | with: |
| 23 | + scheme: TemplatePackage |
23 | 24 | artifactname: TemplatePackage.xcresult |
24 | | - runsonlabels: '["macOS", "self-hosted"]' |
| 25 | + packagewatchos: |
| 26 | + name: Build and Test Swift Package watchOS |
| 27 | + uses: StanfordBDHG/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2 |
| 28 | + with: |
25 | 29 | scheme: TemplatePackage |
26 | | - buildandtestuitests: |
27 | | - name: Build and Test UI Tests |
| 30 | + resultBundle: TemplatePackageWatchOS.xcresult |
| 31 | + destination: 'platform=watchOS Simulator,name=Apple Watch Series 8 (45mm)' |
| 32 | + artifactname: TemplatePackageWatchOS.xcresult |
| 33 | + packagevisionos: |
| 34 | + name: Build and Test Swift Package visionOS |
28 | 35 | uses: StanfordBDHG/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2 |
29 | 36 | with: |
| 37 | + xcodeversion: latest |
| 38 | + scheme: TemplatePackage |
| 39 | + resultBundle: TemplatePackageVisionOS.xcresult |
| 40 | + destination: 'platform=visionOS Simulator,name=Apple Vision Pro' |
| 41 | + artifactname: TemplatePackageVisionOS.xcresult |
| 42 | + ios: |
| 43 | + name: Build and Test iOS |
| 44 | + uses: StanfordBDHG/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2 |
| 45 | + with: |
| 46 | + path: 'Tests/UITests' |
| 47 | + scheme: TestApp |
30 | 48 | artifactname: TestApp.xcresult |
31 | | - runsonlabels: '["macOS", "self-hosted"]' |
| 49 | + ipados: |
| 50 | + name: Build and Test iPadOS |
| 51 | + uses: StanfordBDHG/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2 |
| 52 | + with: |
32 | 53 | path: 'Tests/UITests' |
33 | 54 | scheme: TestApp |
| 55 | + resultBundle: TestAppiPadOS.xcresult |
| 56 | + destination: 'platform=iOS Simulator,name=iPad mini (6th generation)' |
| 57 | + artifactname: TestAppiPadOS.xcresult |
| 58 | + watchos: |
| 59 | + name: Build and Test watchOS |
| 60 | + uses: StanfordBDHG/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2 |
| 61 | + with: |
| 62 | + path: 'Tests/UITests' |
| 63 | + scheme: TestAppWatchApp |
| 64 | + resultBundle: TestAppWatchApp.xcresult |
| 65 | + destination: 'platform=watchOS Simulator,name=Apple Watch Series 8 (45mm)' |
| 66 | + artifactname: TestAppWatchApp.xcresult |
34 | 67 | uploadcoveragereport: |
35 | 68 | name: Upload Coverage Report |
36 | | - needs: [buildandtest, buildandtestuitests] |
| 69 | + needs: [packageios, packagewatchos, packagevisionos, ios, ipados, watchos] |
37 | 70 | uses: StanfordBDHG/.github/.github/workflows/create-and-upload-coverage-report.yml@v2 |
38 | 71 | with: |
39 | | - coveragereports: TemplatePackage.xcresult TestApp.xcresult |
| 72 | + coveragereports: TemplatePackage.xcresult TemplatePackageWatchOS.xcresult TemplatePackageVisionOS.xcresult TestApp.xcresult TestAppiPadOS.xcresult TestAppWatchApp.xcresult |
0 commit comments