Skip to content

Add support for visionOS and macOS #59

Add support for visionOS and macOS

Add support for visionOS and macOS #59

Workflow file for this run

#
# This source file is part of the Stanford XCTestExtensions open-source project
#
# SPDX-FileCopyrightText: 2022 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:
name: Build and Test Swift Package iOS
uses: StanfordBDHG/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
with:
artifactname: XCTestExtensions-Package.xcresult
runsonlabels: '["macOS", "self-hosted"]'
scheme: XCTestExtensions-Package
buildandtestvisionos:
name: Build and Test Swift Package visionOS
uses: StanfordBDHG/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
with:
artifactname: XCTestExtensions-Package-visionOS.xcresult
resultBundle: XCTestExtensions-Package-visionOS.xcresult
runsonlabels: '["macOS", "self-hosted"]'
scheme: XCTestExtensions-Package
destination: 'platform=visionOS Simulator,name=Apple Vision Pro'
buildandtestuitests:
name: Build and Test UI Tests iOS
uses: StanfordBDHG/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
with:
artifactname: TestApp.xcresult
runsonlabels: '["macOS", "self-hosted"]'
path: Tests/UITests
scheme: TestApp
buildandtestuitestsvisionos:
name: Build and Test UI Tests visionOS
uses: StanfordBDHG/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
with:
artifactname: TestApp-visionOS.xcresult
resultBundle: TestApp-visionOS.xcresult
runsonlabels: '["macOS", "self-hosted"]'
path: Tests/UITests
scheme: TestApp
destination: 'platform=visionOS Simulator,name=Apple Vision Pro'
uploadcoveragereport:
name: Upload Coverage Report
needs: [buildandtest, buildandtestvisionos, buildandtestuitests, buildandtestuitestsvisionos]
uses: StanfordBDHG/.github/.github/workflows/create-and-upload-coverage-report.yml@v2
with:
coveragereports: XCTestExtensions-Package.xcresult XCTestExtensions-Package-visionOS.xcresult TestApp.xcresult TestApp-visionOS.xcresult