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
31 changes: 31 additions & 0 deletions .github/workflows/CI-iOS.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

name: CI-iOS

# Controls when the action will run.
# Triggers the workflow on pull request events but only for the master branch.
on:
pull_request:
branches: [ master ]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build-and-test"
build-and-test:
# The type of runner that the job will run on
runs-on: macos-26-xlarge

timeout-minutes: 8

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4

- name: Select Xcode
run: sudo xcode-select -switch /Applications/Xcode_26.1.1.app

- name: Xcode version
run: /usr/bin/xcodebuild -version

- name: Build and Test
run: xcodebuild clean build test -project EssentialFeed/EssentialFeed.xcodeproj -scheme "CI_iOS" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO -sdk iphonesimulator -destination "platform=iOS Simulator,OS=26.1,name=iPhone 17 Pro" ONLY_ACTIVE_ARCH=YES
2 changes: 1 addition & 1 deletion .github/workflows/CI-macOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ jobs:
run: /usr/bin/xcodebuild -version

- name: Build and Test
run: xcodebuild clean build test -project EssentialFeed/EssentialFeed.xcodeproj -scheme "CI" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO -sdk macosx -destination "platform=macOS" -enableThreadSanitizer YES ONLY_ACTIVE_ARCH=YES
run: xcodebuild clean build test -project EssentialFeed/EssentialFeed.xcodeproj -scheme "CI_macOS" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO -sdk macosx -destination "platform=macOS" -enableThreadSanitizer YES ONLY_ACTIVE_ARCH=YES
303 changes: 300 additions & 3 deletions EssentialFeed/EssentialFeed.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "2600"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES"
buildArchitectures = "Automatic">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "080EDEF021B6DA7E00813479"
BuildableName = "EssentialFeed.framework"
BlueprintName = "EssentialFeed"
ReferencedContainer = "container:EssentialFeed.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<TestPlans>
<TestPlanReference
reference = "container:EssentialFeediOS/CI_iOS.xctestplan"
default = "YES">
</TestPlanReference>
</TestPlans>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "080EDEF021B6DA7E00813479"
BuildableName = "EssentialFeed.framework"
BlueprintName = "EssentialFeed"
ReferencedContainer = "container:EssentialFeed.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
shouldUseLaunchSchemeArgsEnv = "YES">
<TestPlans>
<TestPlanReference
reference = "container:CI.xctestplan"
reference = "container:EssentialFeed/CI_macOS.xctestplan"
default = "YES">
</TestPlanReference>
</TestPlans>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
shouldUseLaunchSchemeArgsEnv = "YES">
<TestPlans>
<TestPlanReference
reference = "container:EssentialFeedAPIEndToEndTests.xctestplan"
default = "YES">
</TestPlanReference>
</TestPlans>
<Testables>
<TestableReference
skipped = "NO"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "2600"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES"
buildArchitectures = "Automatic">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "23F5D6D92F182DE800AC7D9F"
BuildableName = "EssentialFeediOS.framework"
BlueprintName = "EssentialFeediOS"
ReferencedContainer = "container:EssentialFeed.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<TestPlans>
<TestPlanReference
reference = "container:EssentialFeediOSTests/EssentialFeediOS.xctestplan"
default = "YES">
</TestPlanReference>
</TestPlans>
<Testables>
<TestableReference
skipped = "NO"
parallelizable = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "23F5D6E12F182DE900AC7D9F"
BuildableName = "EssentialFeediOSTests.xctest"
BlueprintName = "EssentialFeediOSTests"
ReferencedContainer = "container:EssentialFeed.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "23F5D6D92F182DE800AC7D9F"
BuildableName = "EssentialFeediOS.framework"
BlueprintName = "EssentialFeediOS"
ReferencedContainer = "container:EssentialFeed.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"configurations" : [
{
"id" : "26028306-DAF8-49F0-9F39-94720BE08BCC",
"name" : "Test Scheme Action",
"options" : {

}
}
],
"defaultOptions" : {
"codeCoverage" : {
"targets" : [
{
"containerPath" : "container:EssentialFeed.xcodeproj",
"identifier" : "080EDEF021B6DA7E00813479",
"name" : "EssentialFeed"
}
]
},
"performanceAntipatternCheckerEnabled" : true,
"testExecutionOrdering" : "random"
},
"testTargets" : [
{
"parallelizable" : true,
"target" : {
"containerPath" : "container:EssentialFeed.xcodeproj",
"identifier" : "23FBD0C52EF1BDE2005E9351",
"name" : "EssentialFeedAPIEndToEndTests"
}
}
],
"version" : 1
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@
}
],
"defaultOptions" : {
"codeCoverage" : {
"targets" : [
{
"containerPath" : "container:EssentialFeed.xcodeproj",
"identifier" : "080EDEF021B6DA7E00813479",
"name" : "EssentialFeed"
}
]
},
"performanceAntipatternCheckerEnabled" : true,
"testExecutionOrdering" : "random"
},
Expand Down
59 changes: 59 additions & 0 deletions EssentialFeed/EssentialFeediOS/CI_iOS.xctestplan
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"configurations" : [
{
"id" : "3AFDBF55-EF7B-42C3-91B4-53F281C75682",
"name" : "Configuration 1",
"options" : {

}
}
],
"defaultOptions" : {
"codeCoverage" : {
"targets" : [
{
"containerPath" : "container:EssentialFeed.xcodeproj",
"identifier" : "080EDEF021B6DA7E00813479",
"name" : "EssentialFeed"
},
{
"containerPath" : "container:EssentialFeed.xcodeproj",
"identifier" : "23F5D6D92F182DE800AC7D9F",
"name" : "EssentialFeediOS"
}
]
},
"testExecutionOrdering" : "random"
},
"testTargets" : [
{
"target" : {
"containerPath" : "container:EssentialFeed.xcodeproj",
"identifier" : "23FDEB2A2F083D06004D2CD0",
"name" : "EssentialFeedCacheIntegrationTests"
}
},
{
"target" : {
"containerPath" : "container:EssentialFeed.xcodeproj",
"identifier" : "080EDEF921B6DA7E00813479",
"name" : "EssentialFeedTests"
}
},
{
"target" : {
"containerPath" : "container:EssentialFeed.xcodeproj",
"identifier" : "23FBD0C52EF1BDE2005E9351",
"name" : "EssentialFeedAPIEndToEndTests"
}
},
{
"target" : {
"containerPath" : "container:EssentialFeed.xcodeproj",
"identifier" : "23F5D6E12F182DE900AC7D9F",
"name" : "EssentialFeediOSTests"
}
}
],
"version" : 1
}
35 changes: 35 additions & 0 deletions EssentialFeed/EssentialFeediOSTests/EssentialFeediOS.xctestplan
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"configurations" : [
{
"id" : "169EF862-3095-408C-B6F9-456CF2C65301",
"name" : "Test Scheme Action",
"options" : {

}
}
],
"defaultOptions" : {
"codeCoverage" : {
"targets" : [
{
"containerPath" : "container:EssentialFeed.xcodeproj",
"identifier" : "23F5D6D92F182DE800AC7D9F",
"name" : "EssentialFeediOS"
}
]
},
"performanceAntipatternCheckerEnabled" : true,
"testExecutionOrdering" : "random"
},
"testTargets" : [
{
"parallelizable" : true,
"target" : {
"containerPath" : "container:EssentialFeed.xcodeproj",
"identifier" : "23F5D6E12F182DE900AC7D9F",
"name" : "EssentialFeediOSTests"
}
}
],
"version" : 1
}
Loading