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.
- Loading branch information
1 parent
7dfe9b9
commit 90e14d9
Showing
1 changed file
with
37 additions
and
0 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 |