Skip to main content

(Android) Example pull request Workflow

Description

Example Workflow for Android pull request validation. The Workflow contains:

bitrise.yml

---
format_version: '11'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: android
workflows:
  pull-request:
    steps:
    - [email protected]:
        run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
    - [email protected]: {}
    - [email protected]: {}
    - [email protected]:
        inputs:
        - project_location: $PROJECT_LOCATION
        - variant: $VARIANT
    - [email protected]:
        inputs:
        - variant: $VARIANT
        - module: $MODULE
    - [email protected]:
        inputs:
        - test_type: instrumentation
    - [email protected]:
        inputs:
        - variant: "$VARIANT"
    - [email protected]:
        inputs:
        - project_location: "$PROJECT_LOCATION"
        - module: "$MODULE"
        - variant: "$VARIANT"
    - [email protected]: {}
    - [email protected]: {}
    - [email protected]:
        inputs:
        - body: |-
            ![QR code]($BITRISE_PUBLIC_INSTALL_PAGE_QR_CODE_IMAGE_URL)

            $BITRISE_PUBLIC_INSTALL_PAGE_URL
        - personal_access_token: "$GITHUB_ACCESS_TOKEN"
    - [email protected]: {}
app:
  envs:
  - opts:
      is_expand: false
    PROJECT_LOCATION: "."
  - opts:
      is_expand: false
    MODULE: app
  - VARIANT: debug
    opts:
      is_expand: false
trigger_map:
- pull_request_source_branch: "*"
  workflow: pull-request