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

Commit

Permalink
Add pull-request-workflow.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
albertodebortoli committed Aug 18, 2021
1 parent 7dfe9b9 commit 90e14d9
Showing 1 changed file with 37 additions and 0 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

0 comments on commit 90e14d9

Please sign in to comment.