Skip to content

Commit 3e5d150

Browse files
committed
Add autify-connect-client-extra-arguments
1 parent b548277 commit 3e5d150

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ autify-connect-client:
8383
required: false
8484
description: "When true, start Autify Connect Client"
8585
default: "false"
86+
autify-connect-client-extra-arguments:
87+
required: false
88+
description: 'Extra command line arguments you want to pass to Autify Connect Client e.g. "--experimental-tunnel-proxy http://proxy".'
8689
autify-path:
8790
required: false
8891
default: "autify"

action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ inputs:
4646
required: false
4747
description: 'When true, start Autify Connect Client'
4848
default: 'false'
49+
autify-connect-client-extra-arguments:
50+
required: false
51+
description: 'Extra command line arguments you want to pass to Autify Connect Client e.g. "--experimental-tunnel-proxy http://proxy".'
4952
autify-path:
5053
required: false
5154
default: 'autify'
@@ -93,4 +96,5 @@ runs:
9396
INPUT_OS_VERSION: ${{ inputs.os-version }}
9497
INPUT_AUTIFY_CONNECT: ${{ inputs.autify-connect }}
9598
INPUT_AUTIFY_CONNECT_CLIENT: ${{ inputs.autify-connect-client }}
99+
INPUT_AUTIFY_CONNECT_CLIENT_EXTRA_ARGUMENTS: ${{ inputs.autify-connect-client-extra-arguments }}
96100
INPUT_AUTIFY_PATH: ${{ inputs.autify-path }}

script.bash

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ if [ "${INPUT_AUTIFY_CONNECT_CLIENT}" = "true" ]; then
7777
add_args "--autify-connect-client"
7878
fi
7979

80+
if [ -n "${INPUT_AUTIFY_CONNECT_CLIENT_EXTRA_ARGUMENTS}" ]; then
81+
add_args "--autify-connect-client-extra-arguments=${INPUT_AUTIFY_CONNECT_CLIENT_EXTRA_ARGUMENTS}"
82+
fi
83+
8084
export AUTIFY_CLI_USER_AGENT_SUFFIX="${AUTIFY_CLI_USER_AGENT_SUFFIX:=github-actions-web-test-run}"
8185

8286
OUTPUT=$(mktemp)

test/test.bash

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ function before() {
2020
unset INPUT_OS_VERSION
2121
unset INPUT_AUTIFY_CONNECT
2222
unset INPUT_AUTIFY_CONNECT_CLIENT
23+
unset INPUT_AUTIFY_CONNECT_CLIENT_EXTRA_ARGUMENTS
2324
echo "=== TEST ==="
2425
}
2526

@@ -122,11 +123,12 @@ function test_output() {
122123
export INPUT_OS_VERSION=i
123124
export INPUT_AUTIFY_CONNECT=j
124125
export INPUT_AUTIFY_CONNECT_CLIENT=true
125-
test_command "autify web test run a --wait -t=300 -r=b1 -r=b2 --max-retry-count=c --name=d --browser=e --device=f --device-type=g --os=h --os-version=i --autify-connect=j --autify-connect-client"
126+
export INPUT_AUTIFY_CONNECT_CLIENT_EXTRA_ARGUMENTS=k
127+
test_command "autify web test run a --wait -t=300 -r=b1 -r=b2 --max-retry-count=c --name=d --browser=e --device=f --device-type=g --os=h --os-version=i --autify-connect=j --autify-connect-client --autify-connect-client-extra-arguments=k"
126128
test_code 0
127129
test_log
128130
test_output exit-code "0"
129-
test_output log "autify web test run a --wait -t=300 -r=b1 -r=b2 --max-retry-count=c --name=d --browser=e --device=f --device-type=g --os=h --os-version=i --autify-connect=j --autify-connect-client\n$(cat "$log_file")"
131+
test_output log "autify web test run a --wait -t=300 -r=b1 -r=b2 --max-retry-count=c --name=d --browser=e --device=f --device-type=g --os=h --os-version=i --autify-connect=j --autify-connect-client --autify-connect-client-extra-arguments=k\n$(cat "$log_file")"
130132
test_output result-url "https://result"
131133
}
132134

0 commit comments

Comments
 (0)