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

Flutter Pull Request

paulomeurerzup edited this page Jan 11, 2021 · 8 revisions

This workflow is responsible for validating PRs opened for the flutter platform.

Workflow

This workflow will be executed on the following events:

push:
    branches:
        - master
    paths:
        - 'flutter/**'

pull_request:
    paths:
        - 'flutter/**'
        - 'Gemfile'

You can see it more detailed in the workflow file.

Overview

Step by step

This workflow defines a job called PR Check witch contains the following steps:

1. Load fastlane dependencies cache

It uses the github action cache for caching fastlane dependencies and build outputs to improve workflow execution time.

2. Install fastlane

Installs fastlane and its plugins.

3. Load Pub dependencies cache

It uses the github action cache for caching Pub dependencies and build outputs to improve workflow execution time.

4. Configure environment variables

Setup the needed environment variables.

5. Execute fastlane pull_request_verification lane

Fastlane steps are executed in pull_request_verification lane for the flutter platform.

6. Run tests

Uses a script to run tests. The script runs unit and widget tests in a function called runTests and runs dart test in a function called runDartTestsWithCoverage.

7. Generate test coverage reports

Uses a script to generate test coverage report in a function called runReport.

8. Upload tests report

Execute run_codecov fastlane lane.

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

9. Static code analysis

Perform static code analysis using lint to dart files using flutter analyze command line interface.

Clone this wiki locally