- Open Repository locally.
- Add
.github
folder - Add
workflow
folder inside.github
folder. - Add
swift.yml
file. - Add contents as follows in
swift.yml
file.
name: iOS Compile Check
on:
pull_request:
branches:
- development
jobs:
build:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- name: Build
run: bundle install; pod install; bundle exec fastlane ios buildApp
About Above Action
- Above action does successfull compilation check.
- On pull request for given branche(here development), it executes above job.
About above Action’s job
- It runs on macOS latest
- It first checks out branch (here development)
- It runs
bundle install
(which is necessary for fastlane execution) - It adds all dependencies
pod install
-
bundle exec fastlane ios buildApp
builds app & check compilation status. - Know more about
bundle exec fastlane ios buildApp