Android alignment #89
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# This source file is part of the Stanford Spezi open source project | |
# | |
# SPDX-FileCopyrightText: 2024 Stanford University and the project authors (see CONTRIBUTORS.md) | |
# | |
# SPDX-License-Identifier: MIT | |
# | |
name: Build and Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
buildandtest_ios: | |
name: Build and Test Swift Package iOS | |
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2 | |
strategy: | |
matrix: | |
include: | |
- buildConfig: Debug | |
artifactname: SpeziStorage-Package-iOS.xcresult | |
resultBundle: SpeziStorage-Package-iOS.xcresult | |
- buildConfig: Release | |
artifactname: SpeziStorage-Package-iOS-Release.xcresult | |
resultBundle: SpeziStorage-Package-iOS-Release.xcresult | |
with: | |
runsonlabels: '["macOS", "self-hosted"]' | |
scheme: SpeziStorage-Package | |
buildConfig: ${{ matrix.buildConfig }} | |
resultBundle: ${{ matrix.resultBundle }} | |
artifactname: ${{ matrix.artifactname }} | |
buildandtest_visionos: | |
name: Build and Test Swift Package visionOS | |
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2 | |
strategy: | |
matrix: | |
include: | |
- buildConfig: Debug | |
artifactname: SpeziStorage-Package-visionOS.xcresult | |
resultBundle: SpeziStorage-Package-visionOS.xcresult | |
- buildConfig: Release | |
artifactname: SpeziStorage-Package-visionOS-Release.xcresult | |
resultBundle: SpeziStorage-Package-visionOS-Release.xcresult | |
with: | |
runsonlabels: '["macOS", "self-hosted"]' | |
scheme: SpeziStorage-Package | |
destination: 'platform=visionOS Simulator,name=Apple Vision Pro' | |
buildConfig: ${{ matrix.buildConfig }} | |
resultBundle: ${{ matrix.resultBundle }} | |
artifactname: ${{ matrix.artifactname }} | |
buildandtest_macos: | |
name: Build and Test Swift Package macOS | |
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2 | |
strategy: | |
matrix: | |
include: | |
- buildConfig: Debug | |
artifactname: SpeziStorage-Package-macOS.xcresult | |
resultBundle: SpeziStorage-Package-macOS.xcresult | |
- buildConfig: Release | |
artifactname: SpeziStorage-Package-macOS-Release.xcresult | |
resultBundle: SpeziStorage-Package-macOS-Release.xcresult | |
with: | |
runsonlabels: '["macOS", "self-hosted"]' | |
scheme: SpeziStorage-Package | |
destination: 'platform=macOS,arch=arm64' | |
buildConfig: ${{ matrix.buildConfig }} | |
resultBundle: ${{ matrix.resultBundle }} | |
artifactname: ${{ matrix.artifactname }} | |
buildandtestuitests_ios: | |
name: Build and Test UI Tests iOS | |
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2 | |
strategy: | |
matrix: | |
include: | |
- buildConfig: Debug | |
resultBundle: TestApp-iOS.xcresult | |
artifactname: TestApp-iOS.xcresult | |
- buildConfig: Release | |
resultBundle: TestApp-iOS-Release.xcresult | |
artifactname: TestApp-iOS-Release.xcresult | |
with: | |
runsonlabels: '["macOS", "self-hosted"]' | |
path: 'Tests/UITests' | |
scheme: TestApp | |
buildConfig: ${{ matrix.buildConfig }} | |
resultBundle: ${{ matrix.resultBundle }} | |
artifactname: ${{ matrix.artifactname }} | |
buildandtestuitests_ipad: | |
name: Build and Test UI Tests iPadOS | |
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2 | |
strategy: | |
matrix: | |
include: | |
- buildConfig: Debug | |
resultBundle: TestApp-iPad.xcresult | |
artifactname: TestApp-iPad.xcresult | |
- buildConfig: Release | |
resultBundle: TestApp-iPad-Release.xcresult | |
artifactname: TestApp-iPad-Release.xcresult | |
with: | |
runsonlabels: '["macOS", "self-hosted"]' | |
path: 'Tests/UITests' | |
scheme: TestApp | |
destination: 'platform=iOS Simulator,name=iPad Pro 11-inch (M4)' | |
buildConfig: ${{ matrix.buildConfig }} | |
resultBundle: ${{ matrix.resultBundle }} | |
artifactname: ${{ matrix.artifactname }} | |
buildandtestuitests_visionos: | |
name: Build and Test UI Tests visionOS | |
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2 | |
strategy: | |
matrix: | |
include: | |
- buildConfig: Debug | |
resultBundle: TestApp-visionOS.xcresult | |
artifactname: TestApp-visionOS.xcresult | |
- buildConfig: Release | |
resultBundle: TestApp-visionOS-Release.xcresult | |
artifactname: TestApp-visionOS-Release.xcresult | |
with: | |
runsonlabels: '["macOS", "self-hosted"]' | |
path: 'Tests/UITests' | |
scheme: TestApp | |
destination: 'platform=visionOS Simulator,name=Apple Vision Pro' | |
buildConfig: ${{ matrix.buildConfig }} | |
resultBundle: ${{ matrix.resultBundle }} | |
artifactname: ${{ matrix.artifactname }} | |
uploadcoveragereport: | |
name: Upload Coverage Report | |
needs: [buildandtest_ios, buildandtest_visionos, buildandtest_macos, buildandtestuitests_ios, buildandtestuitests_ipad, buildandtestuitests_visionos] | |
uses: StanfordSpezi/.github/.github/workflows/create-and-upload-coverage-report.yml@v2 | |
with: | |
coveragereports: 'SpeziStorage-Package-iOS.xcresult SpeziStorage-Package-visionOS.xcresult SpeziStorage-Package-macOS.xcresult TestApp-iOS.xcresult TestApp-iPad.xcresult TestApp-visionOS.xcresult' | |
secrets: | |
token: ${{ secrets.CODECOV_TOKEN }} |