From f86538a12cae1cd77a2b10ee2411eda7cf387560 Mon Sep 17 00:00:00 2001 From: Michael Rademaker Date: Wed, 11 Sep 2024 14:37:10 +0200 Subject: [PATCH] Run tests separately --- .github/workflows/orlib_cocoapod.yml | 11 +++++++++-- ORLib/ORLib.podspec | 6 ------ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/orlib_cocoapod.yml b/.github/workflows/orlib_cocoapod.yml index ed74a7f..5da104a 100644 --- a/.github/workflows/orlib_cocoapod.yml +++ b/.github/workflows/orlib_cocoapod.yml @@ -21,10 +21,17 @@ jobs: - name: Install CocoaPods run: gem install cocoapods + - name: Run Unit Tests with xcodebuild + run: | + xcodebuild test \ + -project ORLib.xcodeproj \ + -scheme Tests \ + -destination 'platform=iOS Simulator,name=iPhone 14,OS=latest' + - name: Validate Podspec - run: pod lib lint ./ORLib/ORLib.podspec + run: pod lib lint ./ORLib/ORLib.podspec --skip-tests - name: Push to CocoaPods Trunk - run: pod trunk push ./ORLib/ORLib.podspec --allow-warnings + run: pod trunk push ./ORLib/ORLib.podspec --allow-warnings --skip-tests env: COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} diff --git a/ORLib/ORLib.podspec b/ORLib/ORLib.podspec index 313c77d..ce04241 100644 --- a/ORLib/ORLib.podspec +++ b/ORLib/ORLib.podspec @@ -11,10 +11,4 @@ Pod::Spec.new do |spec| spec.source = { :git => "https://github.com/openremote/console-ios.git", :tag => "#{spec.version}" } spec.source_files = 'ORLib/**/*.swift' - - # Define test targets - spec.test_spec do |test_spec| - test_spec.source_files = 'Tests/**/*.swift' - test_spec.resources = ['Tests/Fixtures/**/*'] - end end