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

Backend Pull Request Verification

paulomeurerzup edited this page Jan 11, 2021 · 5 revisions

This process is responsible for validating PRs opened for the Backend platform.

Workflow

This workflow will be executed on the following events:

push:
    branches:
        - master
    paths:
        - 'backend/**'
        - 'common/**'
        - 'schema/kotlin/**'

pull_request:
    paths:
        - 'backend/**'
        - 'common/**'
        - 'schema/kotlin/**'
        - '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 and its dependencies

Installs fastlane and its plugins.

3. Load gradle dependencies cache

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

4. Configure environment variables

Setup needed environment variables.

5. Execute fastlane pull_request_verification lane

Execute fastlane pull_request_verification lane for backend platform.

6. Static code analysis

Perform static code analysis using detekt.

7. Clean

Executes gradle clean task.

8. Compile

Build project artifacts using gradle assemble command.

9. Generate test coverage reports

Generate test coverage reports using jacoco gradle plugin.

10. Upload tests report

Execute run_codecov fastlane lane.

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

Clone this wiki locally