Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Run Flank Github action with config provided by user #1673

Merged
merged 6 commits into from
Mar 10, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,18 @@ inputs:
service_account:
description: 'Service account for authentication. It could be file content or file itself.'
required: true
platform:
description: 'Platform to run [ios | android]'
required: true
flank_configuration_file:
description: 'Flank configuration file'
required: true
runs:
using: "composite"
steps:
- name: Download flankScripts
run: |
curl -L https://github.com/Flank/flank/releases/download/flank-scripts-1.9.0/flank-scripts.jar --output flank-scripts.jar
curl -L https://github.com/Flank/flank/releases/download/flank-scripts-1.9.1/flank-scripts.jar --output flank-scripts.jar
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a possibility to always retrieve the latest?
Therefore we dont need to constantly change the version number?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Sloox
It is by design because we are sure that we will use a stable version tested with this Github action

echo 'java -jar ./flank-scripts.jar "$@"' > flankScripts
chmod +x flankScripts
shell: bash
Expand All @@ -22,5 +28,9 @@ runs:
shell: bash
- id: authentication
run: |
./flankScripts firebase save_service_account --account=${{ inputs.service_account }}
./flankScripts firebase save_service_account --account='${{ inputs.service_account }}'
shell: bash
- id: run_flank
run: |
java -jar flank.jar firebase test ${{ inputs.platform }} run -c=${{ inputs.flank_configuration_file }}
shell: bash