From 02e9408194b285e0d8b279cebdefa864475130af Mon Sep 17 00:00:00 2001 From: Balazs Perlaki-Horvath Date: Fri, 24 Jan 2025 22:59:50 +0100 Subject: [PATCH] Remove in app payments for macOS before building --- .github/workflows/ci.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 }}