GithubHelp home page GithubHelp logo

fahrenkrug / fastlane-action Goto Github PK

View Code? Open in Web Editor NEW

This project forked from maierj/fastlane-action

0.0 0.0 0.0 85.82 MB

A GitHub action for executing fastlane lanes.

License: MIT License

JavaScript 100.00%

fastlane-action's Introduction

GitHub Action: Fastlane

Actions Status

This action executes the lane that is passed.

ℹī¸ Migration to 2.0.0.

Since there were various issues with the hardcoded ruby version inside this action, I decided to hand over the responsibility of setting up the ruby version to the user of this action. So, if you were previously using this action without a setup-ruby step preceding this action, you have to add the setup-ruby step as soon as you migrate to version 2.0.0. If you don't want the behaviour to change, you can specify ruby-version >= 2.6, since that was the version that was hardcoded in versions < 2.0.0 of this action. If you don't have any special requirements when it comes to your ruby version, I would recommend using 2.7.2. Since December 2020, there is a new major version of Ruby available, but fastlane does not support that yet (see this issue). You can keep an eye on this issue from the fastlane repo to see when that changes. Fastlane now also supports Ruby 3.

Inputs

lane

Required The lane that should be executed.

options

Optional The options that should be passed as arguments to the lane. The options should be serialized as a JSON object.

subdirectory

Optional The relative path from the project root to the subdirectory where the fastlane folder is located.

bundle-install-path

Optional The directory where Ruby gems should be installed to and cached. If a relative path is specified, it's applied relative to the location of the Gemfile, which is either the project root or the directory from the subdirectory input option.

verbose

Optional If set to true, adds the verbose option to the fastlane command for extended log output.

skip-tracking

Optional The action tracks usage using Firebase by default (see Tracking of usage statistics). You can disable tracking by setting this input option to 'true'.

env

Optional If used, adds the env option to the fastlane command to use fastlane env files (see Fastlane environment variables).

Example usage

Basic usage for executing a lane in the root directory without arguments.

- uses: actions/checkout@v2
- uses: actions/setup-ruby@v1
  with:
    ruby-version: '2.7.2'
- uses: maierj/[email protected]
  with:
    lane: 'beta'


Usage for executing a lane in the root directory with arguments. For a lane called beta to be called like

fastlane beta option1:value1 option2:value2

the workflow step should look like

- uses: actions/checkout@v2
- uses: actions/setup-ruby@v1
  with:
    ruby-version: '2.7.2'
- uses: maierj/[email protected]
  with:
    lane: 'beta'
    options: '{ "option1": "value1", "option2": "value2" }'


Usage for executing a lane in a context where the fastlane folder is in a subdirectory called ios.

- uses: actions/checkout@v2
- uses: actions/setup-ruby@v1
  with:
    ruby-version: '2.7.2'
- uses: maierj/[email protected]
  with:
    lane: 'beta'
    subdirectory: 'ios'


Speed up execution time of your workflow by specifying a custom directory where Ruby gems are installed to and shared between multiple steps of the same workflow.

- uses: actions/checkout@v2
- uses: actions/setup-ruby@v1
  with:
    ruby-version: '2.7.2'
- uses: maierj/[email protected]
  with:
    lane: 'beta'
    subdirectory: 'ios'
    bundle-install-path: 'vendor/bundle'


Use the env option for fastlane env files:

- uses: actions/checkout@v2
- uses: actions/setup-ruby@v1
  with:
    ruby-version: '2.7.2'
- uses: maierj/[email protected]
  with:
    lane: beta
    env: staging

Support & Limitations

The action supports macOS and ubuntu as virtual environments.

Tracking of usage statistics

Usage of this action is tracked using Firebase. The information that is tracked is:

  • If optional input options is used (not the value of the parameter)
  • If optional input subdirectory is used (not the value of the parameter)
  • If optional input bundle-install-path is used (not the value of the parameter)
  • Operating System of the runner that executes this action (using environment variable RUNNER_OS)
  • Name of the repository, that uses the action (using environment variable GITHUB_REPOSITORY)

Tracking can be disabled by using the input option skip-tracking.

Usage statistics results

These charts are generated automatically every night using a GitHub action workflow. The earliest data points were created on 27.12.2019.

Cumulative number of unique repositories that use the action

Cumulative number of unique repositories that use the action

Non-cumulative number of action runs

Non-cumulative number of action runs

fastlane-action's People

Contributors

dependabot[bot] avatar ema987 avatar fahrenkrug avatar kevincolemaninc avatar maierj avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤ī¸ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.