-
Notifications
You must be signed in to change notification settings - Fork 90
iOS Pull Request
This workflow is responsible for validating PRs opened for the iOS platform.
This workflow will be executed on the following events:
push:
branches:
- master
paths:
- 'iOS/**'
pull_request:
paths:
- 'iOS/**'
- 'Gemfile'
You can see it more detailed in the workflow file.
This workflow defines a job called PR Check
witch contains the following steps:
It uses the github action cache for caching fastlane dependencies and build outputs to improve workflow execution time.
Installs fastlane and its plugins.
It uses the github action cache for caching SPM dependencies and build outputs to improve workflow execution time.
Installs swiftlint with brew.
Setup the needed environment variables.
Fastlane steps are executed in pull_request_verification lane for the iOS platform.
The lane starts specifying XCode version, which will be the version used to run the fastlane actions.
Perform static code analysis using Swiftlint.
After the code is validated, the tests for Beagle workspace are executed specifying a device. This takes place in a fastlane action called scan.
Generates tests coverage report after running tests on step 8.
Execute run_codecov fastlane lane.
This lane uses fastlane-plugin-codecov_reporter plugin to send code coverage informations to Codecov.io
The lane check_if_beagle_works_via_cocoapods_integration
is executed and in it, we verify Beagle integration via CocoaPods by doing a pod install in a workspace called CocoaPodsTest
.
After building this project and running its tests, if no errors occurred, then the integration was successful.