From 684efe0ccd8767f704e032a5a4b0da572618a8c9 Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Sat, 24 Feb 2024 15:15:03 +0800 Subject: [PATCH] [github-action] Change to build and test-without-building --- .github/workflows/CI.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 05ed427f..28074929 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -138,13 +138,14 @@ jobs: rm -rf ~/Library/Developer/Xcode/DerivedData/ mkdir DerivedData - - if: ${{ matrix.platform }} == 'visionOS' + - if: ${{ matrix.platform }} == visionOS run: xcrun simctl boot "Apple Vision Pro" - name: Run test run: | set -o pipefail - xcodebuild test -workspace "${{ env.WORKSPACE_NAME }}" -scheme "Tests ${{ matrix.scheme }}" -destination "${{ matrix.destination }}" -configuration Debug CODE_SIGNING_ALLOWED=NO + xcodebuild build-for-testing -workspace "${{ env.WORKSPACE_NAME }}" -scheme "Tests ${{ matrix.scheme }}" -destination "${{ matrix.destination }}" -configuration Debug CODE_SIGNING_ALLOWED=NO | xcpretty -c + xcodebuild test-without-building -workspace "${{ env.WORKSPACE_NAME }}" -scheme "Tests ${{ matrix.scheme }}" -destination "${{ matrix.destination }}" -configuration Debug CODE_SIGNING_ALLOWED=NO mv ~/Library/Developer/Xcode/DerivedData/ "./DerivedData/${{ matrix.platform }}" - name: Code Coverage