From a234799135b86de97be46df762ffce2b733ddad5 Mon Sep 17 00:00:00 2001 From: Alexis Choupault Date: Fri, 17 Jan 2025 11:35:09 +0100 Subject: [PATCH] fix android ios --- .github/workflows/android.yml | 5 +---- .github/workflows/ios.yml | 12 ++++++++++-- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index a3eedbd..b4acbfc 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -18,8 +18,5 @@ jobs: distribution: 'corretto' java-version: '17' - - name: Go to example/android directory - run: cd example/android - - name: Build and test - run: ./gradlew testDebug + run: ./example/android/gradlew testDebug -p ./example/android/ diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml index 797c9f6..5081c36 100644 --- a/.github/workflows/ios.yml +++ b/.github/workflows/ios.yml @@ -21,10 +21,18 @@ jobs: - name: Install dependencies (if applicable) run: | brew update - brew install cocoapods + brew install cocoapods@1.15.2 + + - name: Install pods + run: | + cd example/ios + pod install + cd ../.. - name: Run tests run: | xcodebuild test -workspace ./example/ios/Runner.xcworkspace \ + -project ./example/ios/Runner.xcodeproj \ -scheme EasyCalendarTests \ - -destination 'platform=iOS Simulator,OS=$,name=iPhone 14' | xcpretty && exit ${PIPESTATUS[0]} + -destination 'platform=iOS Simulator,OS=$,name=iPhone 16' \ + | xcpretty && exit ${PIPESTATUS[0]}