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

iOS pull request verification

Gabriela Coelho edited this page Jan 5, 2021 · 4 revisions

This process is responsible for the pull request verification for iOS platform.

You can see this more detailed in a lane called pull_request_verification from iOS plataform in the Fastfile.

Fastlane

This lane will be executed when our workflow iOS-pr is triggered. It has the following steps:

Overview

Step by step

1. XCode version

Specifies XCode version, which is the version used run the fastlane actions.

2. Static code analysis

Perform static code analysis using Swiftlint.

3. Run tests and generate test coverage reports

After the code is validated, the tests for Beagle workspace are executed specifying a device. This takes place in a fastlane action called scan.

4. Upload tests report

Execute run_codecov fastlane lane.

This lane uses fastlane-plugin-codecov_reporter plugin to send code coverage informations to Codecov.io

5. Cocoapods integration

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.