Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
Merge pull request #30 from justeat/integrate-github-actions
Browse files Browse the repository at this point in the history
Integrate GitHub actions (Pull Request Workflow)
  • Loading branch information
albertodebortoli authored Aug 19, 2021
2 parents 827270f + ab6d0a4 commit c6a9125
Show file tree
Hide file tree
Showing 24 changed files with 843 additions and 503 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/pull-request-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Pull Request Workflow
on: [pull_request]
jobs:
run-tests:
runs-on: macos-11
timeout-minutes: 15
steps:
- name: Cancel previous jobs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Git checkout
uses: actions/[email protected]
with:
ref: ${{ github.ref }}
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '12.4'
- name: Setup ruby and bundler dependencies
uses: ruby/[email protected]
with:
bundler-cache: true
- name: Run pod install
run: bundle exec pod install --project-directory=Example
- name: Add SSH key
run: ssh-add - <<< "${{ secrets.SSH_KEY }}"
- name: Allow SSH fingerprinting
run: |
sudo defaults write com.apple.dt.Xcode IDEPackageSupportUseBuiltinSCM YES
rm ~/.ssh/id_rsa || true
for ip in $(dig @8.8.8.8 bitbucket.org +short); do ssh-keyscan bitbucket.org,$ip; ssh-keyscan $ip; done 2>/dev/null >> ~/.ssh/known_hosts || true
for ip in $(dig @8.8.8.8 github.com +short); do ssh-keyscan github.com,$ip; ssh-keyscan $ip; done 2>/dev/null >> ~/.ssh/known_hosts || true
- name: Run tests
run: bundle exec fastlane unit_tests device:'iPhone 11'
- name: Validate lib
run: bundle exec pod lib lint --allow-warnings
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,7 @@ Carthage/Build
# `pod install` in .travis.yml
#
Pods/
default.profraw
fastlane/test_output/
fastlane/report.xml
derived_data/
2 changes: 2 additions & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
2.5.3

15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

11 changes: 6 additions & 5 deletions Example/JustTrack.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
23CCE1E9265D30FE007B5F64 /* EventObjectStructTemplate.jet */ = {isa = PBXFileReference; lastKnownFileType = text; path = EventObjectStructTemplate.jet; sourceTree = "<group>"; };
23CCE232265F0ADD007B5F64 /* EventObjectKeyVarTemplate.jet */ = {isa = PBXFileReference; lastKnownFileType = text; path = EventObjectKeyVarTemplate.jet; sourceTree = "<group>"; };
4544CED3F31AEB9E0E041E76 /* JustTrack.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = JustTrack.podspec; path = ../JustTrack.podspec; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.ruby; };
4F7E257F26CD2D12001F66F7 /* UnitTests.xctestplan */ = {isa = PBXFileReference; lastKnownFileType = text; path = UnitTests.xctestplan; sourceTree = "<group>"; };
587548F5EB6E75F385206CFC /* Pods-JustTrack_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-JustTrack_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-JustTrack_Example/Pods-JustTrack_Example.debug.xcconfig"; sourceTree = "<group>"; };
607FACD01AFB9204008FA782 /* JustTrack_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = JustTrack_Example.app; sourceTree = BUILT_PRODUCTS_DIR; };
607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
Expand Down Expand Up @@ -137,6 +138,7 @@
607FACD21AFB9204008FA782 /* Example for JustTrack */ = {
isa = PBXGroup;
children = (
4F7E257F26CD2D12001F66F7 /* UnitTests.xctestplan */,
E073ABC31D47A414001B8D51 /* Events.plist */,
C8C75BEB1E4E0D5B006BC73B /* Events_with_errors.plist */,
E0CC1EA71D523C8000FD8AF8 /* TrackingEvents.swift */,
Expand Down Expand Up @@ -261,7 +263,6 @@
TargetAttributes = {
607FACCF1AFB9204008FA782 = {
CreatedOnToolsVersion = 6.3.1;
DevelopmentTeam = ZKPN288GRK;
LastSwiftMigration = 0910;
};
E0CC1E9B1D5238F500FD8AF8 = {
Expand Down Expand Up @@ -453,7 +454,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -505,7 +506,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
Expand All @@ -520,7 +521,7 @@
baseConfigurationReference = 587548F5EB6E75F385206CFC /* Pods-JustTrack_Example.debug.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
DEVELOPMENT_TEAM = ZKPN288GRK;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = JustTrack/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 2.0.0;
Expand All @@ -536,7 +537,7 @@
baseConfigurationReference = BB838AA6D85DC9B92BE0A7C5 /* Pods-JustTrack_Example.release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
DEVELOPMENT_TEAM = ZKPN288GRK;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = JustTrack/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 2.0.0;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1020"
version = "1.3">
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
Expand All @@ -27,29 +27,33 @@
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
BuildableName = "JustTrack_Example.app"
BlueprintName = "JustTrack_Example"
ReferencedContainer = "container:JustTrack.xcodeproj">
</BuildableReference>
</MacroExpansion>
<TestPlans>
<TestPlanReference
reference = "container:JustTrack/UnitTests.xctestplan"
default = "YES">
</TestPlanReference>
</TestPlans>
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "BAF36B48FE76F37516EBC7519280CB95"
BlueprintIdentifier = "4408DD50423900E8DFF1B0886BA5869B"
BuildableName = "JustTrack-Unit-UnitTests.xctest"
BlueprintName = "JustTrack-Unit-UnitTests"
ReferencedContainer = "container:Pods/Pods.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
BuildableName = "JustTrack_Example.app"
BlueprintName = "JustTrack_Example"
ReferencedContainer = "container:JustTrack.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
Expand All @@ -71,8 +75,6 @@
ReferencedContainer = "container:JustTrack.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildSystemType</key>
<string>Original</string>
<key>PreviewsEnabled</key>
<false/>
</dict>
Expand Down
29 changes: 29 additions & 0 deletions Example/JustTrack/UnitTests.xctestplan
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"configurations" : [
{
"id" : "2FFB3C81-719E-49A3-81D9-D5073DF28F54",
"name" : "Default",
"options" : {

}
}
],
"defaultOptions" : {
"codeCoverage" : false,
"targetForVariableExpansion" : {
"containerPath" : "container:JustTrack.xcodeproj",
"identifier" : "607FACCF1AFB9204008FA782",
"name" : "JustTrack_Example"
}
},
"testTargets" : [
{
"target" : {
"containerPath" : "container:Pods\/Pods.xcodeproj",
"identifier" : "4408DD50423900E8DFF1B0886BA5869B",
"name" : "JustTrack-Unit-UnitTests"
}
}
],
"version" : 1
}
4 changes: 2 additions & 2 deletions Example/Podfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source 'https://github.com/CocoaPods/Specs.git'
source 'https://cdn.cocoapods.org/'

platform :ios, '11.0'
platform :ios, '13.0'
use_frameworks!

target 'JustTrack_Example' do
Expand Down
10 changes: 5 additions & 5 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PODS:
- JustTrack (4.1.0)
- JustTrack/UnitTests (4.1.0)
- JustTrack (4.2.0)
- JustTrack/UnitTests (4.2.0)

DEPENDENCIES:
- JustTrack (from `../`)
Expand All @@ -11,8 +11,8 @@ EXTERNAL SOURCES:
:path: "../"

SPEC CHECKSUMS:
JustTrack: dfb506163f9019904290f1e78ddd42c3a3480032
JustTrack: c778fa2bf7398d5ad4edf5ea540efe489ef782e4

PODFILE CHECKSUM: 988b0b119254ab6e04b657af2f78779130313e77
PODFILE CHECKSUM: 87c66d39402a0e334765edb85cd69f6d00c12128

COCOAPODS: 1.8.4
COCOAPODS: 1.10.2
4 changes: 2 additions & 2 deletions Example/Pods/Local Podspecs/JustTrack.podspec.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions Example/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c6a9125

Please sign in to comment.