Skip to content

Releases: Flank/flank

Flank Github action

15 Mar 14:47
14bab1d
Compare
Choose a tag to compare

Action

This Github action allow running Flank using your Github workflows.

Documentation for Flank is at flank.github.io/flank

Usage

Inputs

Input name Description Required Default
version Flank version to run. Minimal supported version is v21.03.1. Leaving it blank will fallback to latest version. false latest available
service_account Service account to authenticate with. Could be path to file, link to file or file content itself. More information about creating a service account could be found at documentation true
platform Platform to run. Could be ios or android true
flank_configuration_file Flank configuration file. More info how it should look like is in documentation true

Outputs

Output name Description
gcloud_results_directory Link to Gcloud store where results are stored.
local_results_directory Path to local results directory. All output files from this run are stored inside. You could use it as output artifacts.

Adding to workflows

- name: <your name>
  id: <id of action>
  uses: Flank/flank@master
  with:
    version: <Flank version to run, minimum supported is v21.03.1, default latest>
    service_account: <file content, file link or path to file with service account> 
    platform: [android|ios]
    flank_configuration_file: <Path to configuration file>

Example workflows

Service account file content from secrets

- name: flank run
  id: flank_run
  uses: Flank/flank@master
  with:
    # Flank version to run
    version: v21.03.1
    # Service account file content from secrets
    service_account: ${{ secrets.SERVICE_ACCOUNT }} 
    # Run Android tests
    platform: android
    # Path to configuration file from local repo
    flank_configuration_file: './testing/android/flank-simple-success.yml'

- name: output
  run: |
    # Use local directory output
    echo "Local directory: ${{ steps.flank_run.outputs.local_results_directory }}"
    # Use Gcloud storage output 
    echo "Gcloud: ${{ steps.flank_run.outputs.gcloud_results_directory }}"

Service account file from repository

- name: flank run
  id: flank_run
  uses: Flank/flank@master
  with:
    # Service account file from repository
    service_account: './service_account.json'
    # Run Android tests
    platform: android
    # Path to configuration file from local repo
    flank_configuration_file: './testing/android/flank-simple-success.yml'

- name: output
  run: |
    # Use local directory output
    echo "Local directory: ${{ steps.flank_run.outputs.local_results_directory }}"
    # Use Gcloud storage output 
    echo "Gcloud: ${{ steps.flank_run.outputs.gcloud_results_directory }}"

Create service account during workflow

- name: Create service account
  run: echo '${{ secrets.SERVICE_ACCOUNT }}' > service_account_created.json

- name: flank run
  id: flank_run
  uses: Flank/flank@master
  with:
    # Service account created in previous step
    service_account: './service_account_created.json'
    # Run Android tests
    platform: android
    # Path to configuration file from local repo
    flank_configuration_file: './testing/android/flank-simple-success.yml'

- name: output
  run: |
    # Use local directory output
    echo "Local directory: ${{ steps.flank_run.outputs.local_results_directory }}"
    # Use Gcloud storage output 
    echo "Gcloud: ${{ steps.flank_run.outputs.gcloud_results_directory }}"

Runner OS support

All 3 runner operating systems are supported.

Flank Scripts 1.9.2

15 Mar 13:10
14bab1d
Compare
Choose a tag to compare
Flank Scripts 1.9.2 Pre-release
Pre-release
refactor: Clean up dependencies (#1696)

PR removes a couple of unused dependencies

## Test Plan
> How do we know the code works?

Both build and IT run finish without any error

Flank v21.03.1

11 Mar 13:00
e12a072
Compare
Choose a tag to compare

v21.03.1

Bug Fixes

Features

CI Changes

Documentation

Tests update

Refactor

Flank Scripts 1.9.1

09 Mar 14:37
7c6f62b
Compare
Choose a tag to compare
Flank Scripts 1.9.1 Pre-release
Pre-release
fix: Saving service account by flank script (#1671)

Fixes #

## Test Plan
> How do we know the code works?

When ```./config/gcloud``` path does not exist flank scripts should create directories.

Flank Scripts 1.9.0

09 Mar 12:21
46e05b6
Compare
Choose a tag to compare
Flank Scripts 1.9.0 Pre-release
Pre-release
feat: Added reading service account in Github action (#1663)

Fixes #1597

## Test Plan
> How do we know the code works?

### Flank scripts part
Run command
- `flankScripts firebase save_service_account --account=<file content, link, file path>` -> to test storing service account

### Github action part
You could run Flank GitHub action on [testing repository](https://github.com/Flank/flank-github-action-testing/actions)

## Checklist

- [x] Documented
- [x] Unit tested
- [x] Test repository updated

Flank Scripts 1.8.0

05 Mar 15:01
8ee557b
Compare
Choose a tag to compare
Flank Scripts 1.8.0 Pre-release
Pre-release
flank-scripts-1.8.0

feat: Add Flank GitHub action (#1660)

Flank Scripts 1.7.3

02 Mar 06:43
bb1741d
Compare
Choose a tag to compare
Flank Scripts 1.7.3 Pre-release
Pre-release
flank-scripts-1.7.3

ci: Update workflow file (#1639)

Flank v21.03.0

01 Mar 18:27
e223337
Compare
Choose a tag to compare

v21.03.0

Bug Fixes

CI Changes

Documentation

Features

Refactor

Flank Scripts 1.7.2

01 Mar 11:41
d5e7c76
Compare
Choose a tag to compare
Flank Scripts 1.7.2 Pre-release
Pre-release
ci: Add missing subcommands (#1641)

Adds missing `NextTagCommand` and `GenerateReleaseNotesCommand` to the `release` command

Flank Scripts 1.7.1

01 Mar 08:22
0b86f0b
Compare
Choose a tag to compare
Flank Scripts 1.7.1 Pre-release
Pre-release
build: Dependencies updates [2021-03-01] (#1636)

Dependencies updates