From 53b08d4e122fbd7cb3798ba29234be4ef0f76afa Mon Sep 17 00:00:00 2001 From: Sebastian Villena <97059974+ruisebas@users.noreply.github.com> Date: Tue, 23 Jan 2024 11:59:31 -0500 Subject: [PATCH] Moving to Codecov Action --- .github/workflows/unit_tests.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index f2ceeea..9080217 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -15,7 +15,7 @@ jobs: - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 - name: Unit test Authenticator on iOS run: xcodebuild test -scheme Authenticator -sdk 'iphonesimulator' -destination 'platform=iOS Simulator,name=iPhone 14,OS=latest' -derivedDataPath Build/ -enableCodeCoverage YES -clonedSourcePackagesDirPath ~/Library/Developer/Xcode/DerivedData/Authenticator | xcpretty --simple --color --report junit && exit ${PIPESTATUS[0]} - - name: Upload Coverage report + - name: Generate Coverage Report continue-on-error: true run: | cd Build/Build/ProfileData @@ -23,7 +23,11 @@ jobs: pathCoverage=Build/Build/ProfileData/${PWD##*/}/Coverage.profdata cd ${{ github.workspace }} xcrun llvm-cov export -format="lcov" -instr-profile $pathCoverage Build/Build/Products/Debug-iphonesimulator/Authenticator.o > Authenticator-Coverage.lcov - Scripts/codecov.sh -F 'Authenticator' + - name: Upload Report + uses: codecov/codecov-action@v3 + with: + flags: Authenticator + verbose: true unit-test-macos: