Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 0 additions & 41 deletions .github/workflows/android.yml

This file was deleted.

50 changes: 50 additions & 0 deletions .github/workflows/iOS.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: CI iOS

on: [push, pull_request]

jobs:
build-and-test:
runs-on: macos-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'

- name: Install CocoaPods
run: gem install cocoapods

- name: Install pod dependencies
working-directory: ./Example
run: pod install || pod install --repo-update

- name: Run tests with coverage
working-directory: ./Example
run: |
xcodebuild \
-workspace RIBs.xcworkspace \
-scheme RIBs-Example \
-sdk iphonesimulator \
-destination 'platform=iOS Simulator,name=iPhone 16,OS=18.2' \
-enableCodeCoverage YES \
clean test

- name: Extract and print coverage
run: |
RESULT_BUNDLE=$(find ~/Library/Developer/Xcode/DerivedData -type d -name "*.xcresult" | sort | tail -n 1)

echo "Found result bundle at: $RESULT_BUNDLE"

xcrun xccov view --report --json "$RESULT_BUNDLE" > coverage.json
cat coverage.json

xcrun xccov view --report "$RESULT_BUNDLE"

- name: Lint podspec
run: |
pod lib lint RIBs.podspec \
--skip-tests
8 changes: 8 additions & 0 deletions Example/Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
use_frameworks!

platform :ios, '10.0'

target 'RIBs_Example' do
pod 'RIBs', :path => '../', :testspecs => ['Tests']

end
Loading