mirror of
https://github.com/appleboy/ssh-action.git
synced 2025-06-02 17:42:12 +08:00
ci: add workflow step for multi-command SSH testing (#386)
Some checks failed
testing main branch / default-user-name-password (push) Failing after 4s
testing main branch / check-ssh-key (push) Failing after 4s
testing main branch / support-key-passphrase (push) Failing after 5s
testing main branch / multiple-server (push) Failing after 4s
testing main branch / support-ed25519-key (push) Failing after 5s
testing main branch / testing-with-env (push) Failing after 4s
testing main branch / testing ipv6 (push) Failing after 21s
testing main branch / some special character (push) Failing after 4s
testing main branch / testing-capturing-output (push) Failing after 4s
testing main branch / testing-script-stop (push) Failing after 4s
testing main branch / testing-script-error (push) Failing after 4s
testing stable version / default-user-name-password (push) Failing after 6s
testing stable version / check-ssh-key (push) Failing after 6s
testing stable version / support-key-passphrase (push) Failing after 6s
testing stable version / multiple-server (push) Failing after 5s
testing stable version / support-ed25519-key (push) Failing after 5s
testing stable version / testing-with-env (push) Failing after 8s
Some checks failed
testing main branch / default-user-name-password (push) Failing after 4s
testing main branch / check-ssh-key (push) Failing after 4s
testing main branch / support-key-passphrase (push) Failing after 5s
testing main branch / multiple-server (push) Failing after 4s
testing main branch / support-ed25519-key (push) Failing after 5s
testing main branch / testing-with-env (push) Failing after 4s
testing main branch / testing ipv6 (push) Failing after 21s
testing main branch / some special character (push) Failing after 4s
testing main branch / testing-capturing-output (push) Failing after 4s
testing main branch / testing-script-stop (push) Failing after 4s
testing main branch / testing-script-error (push) Failing after 4s
testing stable version / default-user-name-password (push) Failing after 6s
testing stable version / check-ssh-key (push) Failing after 6s
testing stable version / support-key-passphrase (push) Failing after 6s
testing stable version / multiple-server (push) Failing after 5s
testing stable version / support-ed25519-key (push) Failing after 5s
testing stable version / testing-with-env (push) Failing after 8s
- Add a workflow step to run multiple SSH commands for testing, including creating a directory, writing a file, listing files, and displaying file contents Signed-off-by: appleboy <appleboy.tw@gmail.com>
This commit is contained in:
parent
8745f9583c
commit
ffd1eec364
15
.github/workflows/main.yml
vendored
15
.github/workflows/main.yml
vendored
@ -51,6 +51,21 @@ jobs:
|
|||||||
port: 2222
|
port: 2222
|
||||||
script_path: testdata/test.sh
|
script_path: testdata/test.sh
|
||||||
|
|
||||||
|
# https://github.com/appleboy/ssh-action/issues/377
|
||||||
|
- name: multiple commands
|
||||||
|
uses: ./
|
||||||
|
with:
|
||||||
|
host: ${{ env.REMOTE_HOST }}
|
||||||
|
username: linuxserver.io
|
||||||
|
password: password
|
||||||
|
port: 2222
|
||||||
|
script: |
|
||||||
|
mkdir -p /tmp/test
|
||||||
|
echo "hello world" > /tmp/test/hello.txt
|
||||||
|
cd /tmp/test
|
||||||
|
ls -al
|
||||||
|
cat /tmp/test/hello.txt
|
||||||
|
|
||||||
check-ssh-key:
|
check-ssh-key:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user