From c9ee20de24a89572c043193fd053c9ad216bb387 Mon Sep 17 00:00:00 2001 From: Max Cobb Date: Wed, 22 Nov 2023 20:36:36 +0000 Subject: [PATCH] added enableCodeCoverage to xcodebuild test command --- .github/workflows/swift-build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/swift-build.yml b/.github/workflows/swift-build.yml index 26a6520..5d8fa54 100644 --- a/.github/workflows/swift-build.yml +++ b/.github/workflows/swift-build.yml @@ -20,7 +20,7 @@ jobs: - name: Swift Lint run: swiftlint --strict - name: Test iOS - run: xcodebuild test -scheme RealityUI -destination "platform=iOS Simulator,name=iPhone 15" + run: xcodebuild test -scheme RealityUI -destination "platform=iOS Simulator,name=iPhone 15" -enableCodeCoverage YES - name: Fetch Coverage uses: sersoft-gmbh/swift-coverage-action@v4 id: coverage-files @@ -29,4 +29,4 @@ jobs: with: files: ${{ join(fromJSON(steps.coverage-files.outputs.files), ',') }} - name: Test macOS - run: xcodebuild test -scheme RealityUI -destination "platform=macOS" + run: xcodebuild test -scheme RealityUI -destination "platform=macOS" -enableCodeCoverage YES