diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b5d155d8..41a7ff91 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,3 +50,12 @@ 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' + + - name: Run Unit Tests on macOS + if: matrix.platform == 'macOS' + run: xcodebuild test -scheme Kiwix -destination 'platform=macOS' + diff --git a/project.yml b/project.yml index 1c3d9288..89281f3e 100644 --- a/project.yml +++ b/project.yml @@ -106,7 +106,7 @@ targets: - "**/dag.lproj" UnitTests: type: bundle.unit-test - platform: macOS + supportedDestinations: [iOS, macOS] settings: PRODUCT_BUNDLE_IDENTIFIER: org.kiwix.Tests TEST_HOST: $(BUILT_PRODUCTS_DIR)/Kiwix.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Kiwix