Skip to content

Commit

Permalink
Merge branch 'main' into feat-refreshable-crypto-list
Browse files Browse the repository at this point in the history
  • Loading branch information
josetorronteras committed Jun 5, 2024
2 parents 96b20dd + 2ea3ba6 commit f7bae8c
Show file tree
Hide file tree
Showing 5 changed files with 140 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:

env:
SCHEME: CryptoWidgetKitApp
TEST_SCHEME: CryptoWidgetKitAppTests
SIMULATOR: "iPhone 15"

jobs:
Expand All @@ -20,8 +19,8 @@ jobs:
fail-fast: true
matrix:
# https://github.com/actions/runner-images/blob/main/images/macos/macos-14-Readme.md#installed-simulators
xcode_version: [ "15.0.1", "15.4" ]
os_version: [ "17.0.1", "17.5" ]
xcode_version: [ "15.4" ]
os_version: [ "17.0.1"]
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -39,6 +38,11 @@ jobs:
- name: Test
run: |
xcodebuild \
-scheme "$TEST_SCHEME" \
-scheme "$SCHEME" \
-destination "platform=iOS Simulator,name=${SIMULATOR},OS=${{ matrix.os_version }}" \
test
-enableCodeCoverage YES \
test
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 2 additions & 0 deletions CryptoWidgetKitApp.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
4D8251C52C05EAD700DD32A3 /* HTTPMethod.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HTTPMethod.swift; sourceTree = "<group>"; };
4D8251C72C05EBBB00DD32A3 /* MockURLSession.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MockURLSession.swift; sourceTree = "<group>"; };
4D8251C92C05EC4500DD32A3 /* URLSessionProtocol.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = URLSessionProtocol.swift; sourceTree = "<group>"; };
4D8251E42C0F7B0300DD32A3 /* CryptoWidgetKitApp.xctestplan */ = {isa = PBXFileReference; lastKnownFileType = text; path = CryptoWidgetKitApp.xctestplan; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -113,6 +114,7 @@
4D7266592C049D820035E348 /* CryptoWidgetKitAppTests */ = {
isa = PBXGroup;
children = (
4D8251E42C0F7B0300DD32A3 /* CryptoWidgetKitApp.xctestplan */,
4D8251C02C05E9F100DD32A3 /* Mocks */,
4D8251C12C05E9FE00DD32A3 /* Network */,
4D72665A2C049D820035E348 /* CryptoWidgetKitAppTests.swift */,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1540"
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 = "4D7266452C049D800035E348"
BuildableName = "CryptoWidgetKitApp.app"
BlueprintName = "CryptoWidgetKitApp"
ReferencedContainer = "container:CryptoWidgetKitApp.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<TestPlans>
<TestPlanReference
reference = "container:CryptoWidgetKitAppTests/CryptoWidgetKitApp.xctestplan"
default = "YES">
</TestPlanReference>
</TestPlans>
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "4D7266552C049D820035E348"
BuildableName = "CryptoWidgetKitAppTests.xctest"
BlueprintName = "CryptoWidgetKitAppTests"
ReferencedContainer = "container:CryptoWidgetKitApp.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">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "4D7266452C049D800035E348"
BuildableName = "CryptoWidgetKitApp.app"
BlueprintName = "CryptoWidgetKitApp"
ReferencedContainer = "container:CryptoWidgetKitApp.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "4D7266452C049D800035E348"
BuildableName = "CryptoWidgetKitApp.app"
BlueprintName = "CryptoWidgetKitApp"
ReferencedContainer = "container:CryptoWidgetKitApp.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
28 changes: 28 additions & 0 deletions CryptoWidgetKitAppTests/CryptoWidgetKitApp.xctestplan
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"configurations" : [
{
"id" : "9F0B5D53-33C8-4636-BB91-BF892799921C",
"name" : "Test Scheme Action",
"options" : {

}
}
],
"defaultOptions" : {
"targetForVariableExpansion" : {
"containerPath" : "container:CryptoWidgetKitApp.xcodeproj",
"identifier" : "4D7266452C049D800035E348",
"name" : "CryptoWidgetKitApp"
}
},
"testTargets" : [
{
"target" : {
"containerPath" : "container:CryptoWidgetKitApp.xcodeproj",
"identifier" : "4D7266552C049D820035E348",
"name" : "CryptoWidgetKitAppTests"
}
}
],
"version" : 1
}
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
# CryptoWidgetKitApp

[![CodeFactor](https://www.codefactor.io/repository/github/josetorronteras/cryptowidgetkitapp/badge)](https://www.codefactor.io/repository/github/josetorronteras/cryptowidgetkitapp)

[![iOS build and test workflow](https://github.com/josetorronteras/CryptoWidgetKitApp/actions/workflows/ios.yml/badge.svg?branch=main)](https://github.com/josetorronteras/CryptoWidgetKitApp/actions/workflows/ios.yml)

[![codecov](https://codecov.io/gh/josetorronteras/CryptoWidgetKitApp/graph/badge.svg?token=5O0SZMNM97)](https://codecov.io/gh/josetorronteras/CryptoWidgetKitApp)

0 comments on commit f7bae8c

Please sign in to comment.