Skip to content

Model Account Service as singleton with ability to provide multiple Identity Providers #331

Model Account Service as singleton with ability to provide multiple Identity Providers

Model Account Service as singleton with ability to provide multiple Identity Providers #331

Workflow file for this run

#
# This source file is part of the Spezi 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
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
with:
runsonlabels: '["macOS", "self-hosted"]'
scheme: SpeziAccount
artifactname: SpeziAccount.xcresult
resultBundle: SpeziAccount.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: SpeziAccount
destination: 'platform=macOS,arch=arm64'
artifactname: SpeziAccount-macOS.xcresult
resultBundle: SpeziAccount-macOS.xcresult
buildandtest_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: SpeziAccount
xcodeversion: latest
swiftVersion: 6
artifactname: SpeziAccount-Latest.xcresult
resultBundle: SpeziAccount-Latest.xcresult
buildandtestuitests:
name: Build and Test UI Tests
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
with:
runsonlabels: '["macOS", "self-hosted"]'
path: 'Tests/UITests'
scheme: TestApp
artifactname: TestApp.xcresult
resultBundle: TestApp.xcresult
buildandtestuitests_latest:
name: Build and Test UI Tests 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
artifactname: TestApp-Latest.xcresult
resultBundle: TestApp-Latest.xcresult
uploadcoveragereport:
name: Upload Coverage Report
needs: [buildandtest, buildandtest_macos, buildandtestuitests]
uses: StanfordSpezi/.github/.github/workflows/create-and-upload-coverage-report.yml@v2
with:
coveragereports: SpeziAccount.xcresult SpeziAccount-macOS.xcresult TestApp.xcresult
secrets:
token: ${{ secrets.CODECOV_TOKEN }}