ci(script): improve CI robustness and coverage across environments
Some checks failed
testing main branch / default-user-name-password (push) Failing after 7s
testing main branch / check-ssh-key (push) Failing after 5s
testing main branch / support-key-passphrase (push) Failing after 5s
testing main branch / multiple-server (push) Failing after 11s
testing main branch / support-ed25519-key (push) Failing after 17s
testing stable version / check-ssh-key (push) Failing after 11s
testing main branch / testing ipv6 (push) Failing after 15s
testing main branch / testing-with-env (push) Failing after 18s
testing stable version / support-ed25519-key (push) Failing after 8s
testing stable version / default-user-name-password (push) Failing after 14s
testing stable version / support-key-passphrase (push) Failing after 11s
testing stable version / multiple-server (push) Failing after 9s
testing stable version / testing-with-env (push) Failing after 6s

- Change single-line script to multi-line bash script with error handling in GitHub Actions workflow

Signed-off-by: appleboy <appleboy.tw@gmail.com>
This commit is contained in:
appleboy 2024-10-24 01:27:03 +08:00
parent 2763143a97
commit 8b84eaec3a
No known key found for this signature in database

View file

@ -37,7 +37,10 @@ jobs:
username: linuxserver.io
password: password
port: 2222
script: whoami
script: |
#!/usr/bin/env bash
set -e
whoami
check-ssh-key:
runs-on: ubuntu-latest