diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 41a7ff91..33fd0005 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,7 +50,7 @@ jobs: APPLE_DEVELOPMENT_SIGNING_CERTIFICATE: ${{ secrets.APPLE_DEVELOPMENT_SIGNING_CERTIFICATE }} APPLE_DEVELOPMENT_SIGNING_P12_PASSWORD: ${{ secrets.APPLE_DEVELOPMENT_SIGNING_P12_PASSWORD }} EXTRA_XCODEBUILD: ${{ env.EXTRA_XCODEBUILD }} - + - name: Run Unit Tests on iOS if: matrix.platform == 'iOS' run: xcodebuild test -scheme Kiwix -destination 'platform=iOS Simulator,name=iPhone 15 Plus' @@ -59,3 +59,8 @@ jobs: if: matrix.platform == 'macOS' run: xcodebuild test -scheme Kiwix -destination 'platform=macOS' + - name: Upload code coverage + uses: codecov/codecov-action@v4.2.0 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + diff --git a/README.md b/README.md index c9833f13..0a0dae7e 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ This is the home for Kiwix apps for Apple iOS and macOS. [![CodeFactor](https://www.codefactor.io/repository/github/kiwix/kiwix-apple/badge)](https://www.codefactor.io/repository/github/kiwix/kiwix-apple) [![CI Build Status](https://github.com/kiwix/kiwix-apple/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/kiwix/kiwix-apple/actions/workflows/ci.yml?query=branch%3Amain) [![CD Build Status](https://github.com/kiwix/kiwix-apple/actions/workflows/cd.yml/badge.svg?branch=main)](https://github.com/kiwix/kiwix-apple/actions/workflows/cd?query=branch%3Amain) +[![Codecov](https://codecov.io/gh/kiwix/kiwix-apple/branch/main/graph/badge.svg)](https://codecov.io/gh/kiwix/kiwix-apple) [![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0) Drawing= diff --git a/project.yml b/project.yml index 1fcfdd31..3ddf49a6 100644 --- a/project.yml +++ b/project.yml @@ -131,5 +131,7 @@ schemes: - UnitTests commandLineArguments: testing: true - + gatherCoverageData: true + coverageTargets: + - Kiwix \ No newline at end of file