Skip to content

Commit

Permalink
ci: try to put on ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Kotauror committed Dec 6, 2024
1 parent f5cbdc7 commit 33867fe
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 2 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,28 @@ jobs:
- name: Build example for iOS
run: |
yarn turbo run build:ios
- name: Run unit tests swift
run: |
yarn turbo run build:ios
test-swift:
runs-on: macos-14
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup
uses: ./.github/actions/setup

- name: Install cocoapods
run: |
cd example/ios
pod install
env:
NO_FLIPPER: 1

- name: Run unit tests swift
run: |
cd example/ios
xcodebuild -workspace TicketmasterIgniteExample.xcworkspace -scheme TicketmasterIgniteExample -destination 'platform=iOS Simulator,name=iPhone 16' CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGN_ENTITLEMENTS="" CODE_SIGNING_ALLOWED=NO test
24 changes: 24 additions & 0 deletions example/ios/TestPlan.xctestplan
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"configurations" : [
{
"id" : "56E8F040-1EDF-4F87-9FCA-4B453EDE47E1",
"name" : "Configuration 1",
"options" : {

}
}
],
"defaultOptions" : {
"testTimeoutsEnabled" : true
},
"testTargets" : [
{
"target" : {
"containerPath" : "container:TicketmasterIgniteExample.xcodeproj",
"identifier" : "00E356ED1AD99517003FC87E",
"name" : "TicketmasterIgniteExampleTests"
}
}
],
"version" : 1
}
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "TicketmasterIgniteExampleTests/TicketmasterIgniteExampleTests-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 6.0;
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/TicketmasterIgniteExample.app/TicketmasterIgniteExample";
};
name = Debug;
Expand All @@ -470,7 +470,7 @@
PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "TicketmasterIgniteExampleTests/TicketmasterIgniteExampleTests-Bridging-Header.h";
SWIFT_VERSION = 6.0;
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/TicketmasterIgniteExample.app/TicketmasterIgniteExample";
};
name = Release;
Expand Down

0 comments on commit 33867fe

Please sign in to comment.