Skip to content

Commit c5f047c

Browse files
committed
ci: enhance GitHub Actions with Protocol Configs
- Add a new GitHub Actions job `testing06` for testing in IPv6 environment with specific steps and parameters - Introduce `protocol` input for the GitHub Action with a description of valid values and default setting - Introduce `proxy_protocol` input for the GitHub Action with a description of valid values and default setting Signed-off-by: Bo-Yi Wu <[email protected]>
1 parent 9b978f0 commit c5f047c

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,3 +282,25 @@ jobs:
282282
script: |
283283
whoami && echo 'hello world' && touch todo.txt
284284
sudo whoami
285+
286+
testing06:
287+
name: ipv6
288+
runs-on: ubuntu-latest
289+
steps:
290+
- name: checkout
291+
uses: actions/checkout@v1
292+
293+
- name: testing in ipv6
294+
uses: ./
295+
with:
296+
host: "fe80::6c:d6ff:fe09:79d4"
297+
username: ${{ secrets.USERNAME }}
298+
key: ${{ secrets.KEY }}
299+
port: ${{ secrets.PORT }}
300+
protocol: "tcp6"
301+
script_stop: true
302+
request_pty: true
303+
command_timeout: 30s
304+
script: |
305+
whoami && echo 'hello world' && touch todo.txt
306+
sudo whoami

action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ inputs:
1313
description: "SSH username."
1414
password:
1515
description: "SSH password."
16+
protocol:
17+
description: 'The IP protocol to use. Valid values are "tcp", "tcp4" or "tcp6". Default to tcp.'
1618
sync:
1719
description: "Enable synchronous execution if multiple hosts are involved."
1820
use_insecure_cipher:
@@ -40,6 +42,8 @@ inputs:
4042
description: "SSH proxy username."
4143
proxy_password:
4244
description: "SSH proxy password."
45+
proxy_protocol:
46+
description: 'The IP protocol to use. Valid values are "tcp", "tcp4" or "tcp6". Default to tcp.'
4347
proxy_passphrase:
4448
description: "SSH proxy key passphrase."
4549
proxy_timeout:

0 commit comments

Comments
 (0)