Remove in app payments for macOS before building

This commit is contained in:
Balazs Perlaki-Horvath 2025-01-24 22:59:50 +01:00
parent fdf9c9c030
commit 02e9408194

View File

@ -44,6 +44,11 @@ jobs:
if: matrix.platform == 'macOS' if: matrix.platform == 'macOS'
run: echo "EXTRA_XCODEBUILD=${{ env.APPLE_AUTH_PARAMS }}" >> $GITHUB_ENV 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 - name: Build
uses: ./.github/actions/xcbuild uses: ./.github/actions/xcbuild
with: with:
@ -58,8 +63,11 @@ jobs:
if: matrix.platform == 'iOS' if: matrix.platform == 'iOS'
run: xcodebuild test -scheme Kiwix -destination 'platform=iOS Simulator,name=iPhone 15 Plus' 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 - name: Upload code coverage
if: matrix.platform == 'iOS'
uses: codecov/codecov-action@v4.2.0 uses: codecov/codecov-action@v4.2.0
env: env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}