This repository has been archived by the owner on Jan 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from justeat/integrate-github-actions
Integrate GitHub actions (Pull Request Workflow)
- Loading branch information
Showing
24 changed files
with
843 additions
and
503 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
2.5.3 | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.