diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index e63c38c0..1df6b6d5 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -18,60 +18,66 @@ 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 @@ -79,9 +85,10 @@ jobs: 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