Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
PSchmiedmayer committed Aug 23, 2023
1 parent 4ec07c8 commit 3c75394
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 23 deletions.
28 changes: 7 additions & 21 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,14 @@ jobs:
swiftlint:
name: SwiftLint
uses: StanfordBDHG/.github/.github/workflows/swiftlint.yml@v2
ios:
name: Build and Test iOS
buildandtest:
name: Build and Test
uses: StanfordBDHG/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
with:
scheme: TemplateApplication
runsonlabels: '["macOS", "self-hosted"]'
xcodeversion: latest
fastlanelane: test
artifactname: TemplateApplication.xcresult
ipados:
name: Build and Test iPadOS
uses: StanfordBDHG/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
with:
scheme: TemplateApplication
resultBundle: TemplateApplicationiPadOS.xcresult
destination: 'platform=iOS Simulator,name=iPad mini (6th generation)'
artifactname: TemplateApplicationiPadOS.xcresult
visionos:
name: Build and Test visionOS
uses: StanfordBDHG/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
Expand All @@ -43,17 +37,9 @@ jobs:
scheme: TemplateApplication
destination: 'platform=visionOS Simulator,name=Apple Vision Pro'
test: false
watchos:
name: Build and Test watchOS
uses: StanfordBDHG/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
with:
scheme: TemplateApplicationWatchApp
resultBundle: TemplateApplicationWatchApp.xcresult
destination: 'platform=watchOS Simulator,name=Apple Watch Series 8 (45mm)'
artifactname: TemplateApplicationWatchApp.xcresult
uploadcoveragereport:
name: Upload Coverage Report
needs: [ios, ipados, watchos]
needs: [buildandtest]
uses: StanfordBDHG/.github/.github/workflows/create-and-upload-coverage-report.yml@v2
with:
coveragereports: TemplateApplication.xcresult TemplateApplicationiPadOS.xcresult TemplateApplicationWatchApp.xcresult
coveragereports: TemplateApplication.xcresult
4 changes: 2 additions & 2 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ platform :ios do
skip_build: true,
derived_data_path: ".derivedData",
code_coverage: true,
devices: ["iPhone 14 Pro", "iPad mini (6th generation)"],
devices: ["iPhone 14 Pro", "iPad mini (6th generation), Apple Watch Series 8 (45mm)"],
force_quit_simulator: true,
reset_simulator: true,
prelaunch_simulator: true,
Expand All @@ -38,7 +38,7 @@ platform :ios do
export_options: {
provisioningProfiles: {
"edu.stanford.templateapplication" => "TemplateApplication",
"edu.stanford.templateapplication.watchkitapp" => "TemplateApplicationWatchApp"
"edu.stanford.templateapplication.watchkitapp" => "TemplateWatchApplication"
}
}
)
Expand Down

0 comments on commit 3c75394

Please sign in to comment.