Minor Strict Concurrency fix #182
Workflow file for this run
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 | |
with: | |
runsonlabels: '["macOS", "self-hosted"]' | |
scheme: SpeziViews-Package | |
resultBundle: SpeziViews-iOS.xcresult | |
artifactname: SpeziViews-iOS.xcresult | |
buildandtest_ios_latest: | |
name: Build and Test Swift Package iOS Latest | |
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2 | |
with: | |
runsonlabels: '["macOS", "self-hosted"]' | |
scheme: SpeziViews-Package | |
xcodeversion: latest | |
swiftVersion: 6 | |
resultBundle: SpeziViews-iOS-Latest.xcresult | |
artifactname: SpeziViews-iOS-Latest.xcresult | |
buildandtest_watchos: | |
name: Build and Test Swift Package watchOS | |
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2 | |
with: | |
runsonlabels: '["macOS", "self-hosted"]' | |
scheme: SpeziViews-Package | |
destination: 'platform=watchOS Simulator,name=Apple Watch Series 9 (45mm)' | |
resultBundle: SpeziViews-watchOS.xcresult | |
artifactname: SpeziViews-watchOS.xcresult | |
buildandtest_visionos: | |
name: Build and Test Swift Package visionOS | |
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2 | |
with: | |
runsonlabels: '["macOS", "self-hosted"]' | |
scheme: SpeziViews-Package | |
destination: 'platform=visionOS Simulator,name=Apple Vision Pro' | |
resultBundle: SpeziViews-visionOS.xcresult | |
artifactname: SpeziViews-visionOS.xcresult | |
buildandtest_tvos: | |
name: Build and Test Swift Package tvOS | |
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2 | |
with: | |
runsonlabels: '["macOS", "self-hosted"]' | |
scheme: SpeziViews-Package | |
destination: 'platform=tvOS Simulator,name=Apple TV 4K (3rd generation)' | |
resultBundle: SpeziViews-tvOS.xcresult | |
artifactname: SpeziViews-tvOS.xcresult | |
buildandtest_macos: | |
name: Build and Test Swift Package macOS | |
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2 | |
with: | |
runsonlabels: '["macOS", "self-hosted"]' | |
scheme: SpeziViews-Package | |
destination: 'platform=macOS,arch=arm64' | |
resultBundle: SpeziViews-macOS.xcresult | |
artifactname: SpeziViews-macOS.xcresult | |
buildandtestuitests_ios: | |
name: Build and Test UI Tests iOS | |
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2 | |
with: | |
runsonlabels: '["macOS", "self-hosted"]' | |
path: Tests/UITests | |
scheme: TestApp | |
resultBundle: TestApp-iOS.xcresult | |
artifactname: TestApp-iOS.xcresult | |
buildandtestuitests_ios_latest: | |
name: Build and Test UI Tests iOS Latest | |
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2 | |
with: | |
runsonlabels: '["macOS", "self-hosted"]' | |
path: Tests/UITests | |
scheme: TestApp | |
xcodeversion: latest | |
swiftVersion: 6 | |
resultBundle: TestApp-iOS-Latest.xcresult | |
artifactname: TestApp-iOS-Latest.xcresult | |
buildandtestuitests_ipad: | |
name: Build and Test UI Tests iPadOS | |
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2 | |
with: | |
runsonlabels: '["macOS", "self-hosted"]' | |
path: Tests/UITests | |
scheme: TestApp | |
destination: 'platform=iOS Simulator,name=iPad Pro 11-inch (M4)' | |
resultBundle: TestApp-iPad.xcresult | |
artifactname: TestApp-iPad.xcresult | |
buildandtestuitests_visionos: | |
name: Build and Test UI Tests visionOS | |
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2 | |
with: | |
runsonlabels: '["macOS", "self-hosted"]' | |
path: Tests/UITests | |
scheme: TestApp | |
destination: 'platform=visionOS Simulator,name=Apple Vision Pro' | |
resultBundle: TestApp-visionOS.xcresult | |
artifactname: TestApp-visionOS.xcresult | |
uploadcoveragereport: | |
name: Upload Coverage Report | |
needs: [buildandtest_ios, buildandtest_visionos, buildandtest_watchos, buildandtest_tvos, buildandtest_macos, buildandtestuitests_ios, buildandtestuitests_ipad, buildandtestuitests_visionos] | |
uses: StanfordSpezi/.github/.github/workflows/create-and-upload-coverage-report.yml@v2 | |
with: | |
coveragereports: SpeziViews-iOS.xcresult SpeziViews-watchOS.xcresult SpeziViews-visionOS.xcresult SpeziViews-tvOS.xcresult TestApp-iOS.xcresult TestApp-iPad.xcresult TestApp-visionOS.xcresult | |
secrets: | |
token: ${{ secrets.CODECOV_TOKEN }} |