-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
71 lines (69 loc) · 2.63 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: 'Run test on Autify for Mobile'
description: 'Run a test plan on Autify for Mobile.'
author: 'Autify Inc.'
inputs:
access-token:
required: true
description: 'Access token of Autify for Mobile.'
autify-test-url:
required: true
description: 'URL of a test plan e.g. https://moible-app.autify.com/projects/<ID>/test_plans/<ID>'
build-id:
required: false
description: 'ID of the already uploaded build. (Note: Either build-id or build-path is required but not both)'
build-path:
required: false
description: 'File path to the iOS app (*.app) or Android app (*.apk). (Note: Either build-id or build-path is required but not both)'
wait:
required: false
default: 'false'
description: 'When true, the action waits until the test finishes.'
timeout:
required: false
description: 'Timeout seconds when waiting.'
max-retry-count:
required: false
description: "Maximum retry count while waiting. The command can take up to `timeout * (max-retry-count + 1)`. Only effective with `wait`"
autify-path:
required: false
default: 'autify'
description: 'A path to `autify` which will be used to invoke Autify CLI internally. Default is searching from PATH.'
autify-cli-installer-url:
required: false
default: "https://autify-cli-assets.s3.amazonaws.com/autify-cli/channels/stable/install-cicd.bash"
description: 'Autify CLI installer URL'
outputs:
exit-code:
description: 'Exit code of autify-cli. 0 means succeeded.'
value: ${{ steps.run.outputs.exit-code }}
log:
description: 'Log of stdout and stderr.'
value: ${{ steps.run.outputs.log }}
build-id:
description: 'Returned build id on the workspace.'
value: ${{ steps.run.outputs.build-id }}
result-url:
description: 'Test result URL on Autify for Mobile'
value: ${{ steps.run.outputs.result-url }}
runs:
using: 'composite'
steps:
- uses: autifyhq/actions-setup-cli@v2
with:
shell-installer-url: ${{ inputs.autify-cli-installer-url }}
# Only for integration tests.
- if: ${{ env.AUTIFY_CLI_INTEGRATION_TEST_INSTALL == '1' }}
run: autify-mobile-generate-fake-app
shell: bash
- id: run
run: $GITHUB_ACTION_PATH/script.bash
shell: bash
env:
INPUT_ACCESS_TOKEN: ${{ inputs.access-token }}
INPUT_AUTIFY_TEST_URL: ${{ inputs.autify-test-url }}
INPUT_BUILD_ID: ${{ inputs.build-id }}
INPUT_BUILD_PATH: ${{ inputs.build-path }}
INPUT_WAIT: ${{ inputs.wait }}
INPUT_TIMEOUT: ${{ inputs.timeout }}
INPUT_MAX_RETRY_COUNT: ${{ inputs.max-retry-count }}
INPUT_AUTIFY_PATH: ${{ inputs.autify-path }}