Skip to content

Commit

Permalink
Run tests separately
Browse files Browse the repository at this point in the history
  • Loading branch information
Miggets7 committed Sep 11, 2024
1 parent 552e51a commit f86538a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/orlib_cocoapod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
6 changes: 0 additions & 6 deletions ORLib/ORLib.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f86538a

Please sign in to comment.