diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d50dab73..426c789b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,6 +44,11 @@ jobs: if: matrix.platform == 'macOS' run: echo "EXTRA_XCODEBUILD=${{ env.APPLE_AUTH_PARAMS }}" >> $GITHUB_ENV + - name: Remove in-app-payments capability for unit tests on macOS + if: matrix.platform == 'macOS' + run: | + sed -i '' '/in-app-payments/d' project.yml + - name: Build uses: ./.github/actions/xcbuild with: @@ -58,8 +63,11 @@ jobs: if: matrix.platform == 'iOS' run: xcodebuild test -scheme Kiwix -destination 'platform=iOS Simulator,name=iPhone 15 Plus' + - name: Run Unit Tests on macOS + if: matrix.platform == 'macOS' + run: xcodebuild test -scheme Kiwix -destination 'platform=macOS' CODE_SIGNING_ALLOWED=NO + - name: Upload code coverage - if: matrix.platform == 'iOS' uses: codecov/codecov-action@v4.2.0 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}