Skip to content

Commit

Permalink
Specify warningsAsErrors to true by using the github actions introduc…
Browse files Browse the repository at this point in the history
…ed in the feature/warnings-as-errors branch
  • Loading branch information
pauljohanneskraft committed May 14, 2024
1 parent cada96d commit c4ff213
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,70 +18,77 @@ on:
jobs:
buildandtest_ios:
name: Build and Test Swift Package iOS
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@feature/warnings-as-errors
with:
runsonlabels: '["macOS", "self-hosted"]'
scheme: Spezi-Package
resultBundle: Spezi-Package-iOS.xcresult
artifactname: Spezi-Package-iOS.xcresult
warningsAsErrors: true
buildandtest_watchos:
name: Build and Test Swift Package watchOS
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@feature/warnings-as-errors
with:
runsonlabels: '["macOS", "self-hosted"]'
scheme: Spezi-Package
destination: 'platform=watchOS Simulator,name=Apple Watch Series 9 (45mm)'
resultBundle: Spezi-Package-watchOS.xcresult
artifactname: Spezi-Package-watchOS.xcresult
warningsAsErrors: true
buildandtest_visionos:
name: Build and Test Swift Package visionOS
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@feature/warnings-as-errors
with:
runsonlabels: '["macOS", "self-hosted"]'
scheme: Spezi-Package
destination: 'platform=visionOS Simulator,name=Apple Vision Pro'
resultBundle: Spezi-Package-visionOS.xcresult
artifactname: Spezi-Package-visionOS.xcresult
warningsAsErrors: true
buildandtest_tvos:
name: Build and Test Swift Package tvOS
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@feature/warnings-as-errors
with:
runsonlabels: '["macOS", "self-hosted"]'
scheme: Spezi-Package
destination: 'platform=tvOS Simulator,name=Apple TV 4K (3rd generation)'
resultBundle: Spezi-Package-tvOS.xcresult
artifactname: Spezi-Package-tvOS.xcresult
warningsAsErrors: true
buildandtest_macos:
name: Build and Test Swift Package macOS
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@feature/warnings-as-errors
with:
runsonlabels: '["macOS", "self-hosted"]'
scheme: Spezi-Package
destination: 'platform=macOS,arch=arm64'
resultBundle: Spezi-Package-macOS.xcresult
artifactname: Spezi-Package-macOS.xcresult
warningsAsErrors: true
buildandtestuitests_ios:
name: Build and Test UI Tests iOS
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@feature/warnings-as-errors
with:
runsonlabels: '["macOS", "self-hosted"]'
path: Tests/UITests
scheme: TestApp
resultBundle: TestApp-iOS.xcresult
artifactname: TestApp-iOS.xcresult
warningsAsErrors: true
buildandtestuitests_visionos:
name: Build and Test UI Tests visionOS
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@feature/warnings-as-errors
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
warningsAsErrors: true
uploadcoveragereport:
name: Upload Coverage Report
needs: [buildandtest_ios, buildandtest_watchos, buildandtest_visionos, buildandtest_tvos, buildandtest_macos, buildandtestuitests_ios, buildandtestuitests_visionos]
uses: StanfordSpezi/.github/.github/workflows/create-and-upload-coverage-report.yml@v2
uses: StanfordSpezi/.github/.github/workflows/create-and-upload-coverage-report.yml@feature/warnings-as-errors
with:
coveragereports: Spezi-Package-iOS.xcresult Spezi-Package-watchOS.xcresult Spezi-Package-visionOS.xcresult Spezi-Package-tvOS.xcresult Spezi-Package-macOS.xcresult TestApp-iOS.xcresult TestApp-visionOS.xcresult

0 comments on commit c4ff213

Please sign in to comment.