Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ci: add SSH testing job to GitHub Actions workflow #355

Merged
merged 3 commits into from
Dec 5, 2024
Merged

Conversation

appleboy
Copy link
Owner

@appleboy appleboy commented Dec 5, 2024

  • Add a new job testing-script-stop to the GitHub Actions workflow
  • Set up an SSH server using a Docker container within the new job
  • Capture the container's IP address and store it in the GitHub environment
  • Add a step to run an SSH command with stdout capture
  • Include a script to test conditional logic within the SSH command
  • Add a step to check and print the captured stdout from the SSH command

fix #335 (comment)

- Add a new job `testing-script-stop` to the GitHub Actions workflow
- Set up an SSH server using a Docker container within the new job
- Capture the container's IP address and store it in the GitHub environment
- Add a step to run an SSH command with stdout capture
- Include a script to test conditional logic within the SSH command
- Add a step to check and print the captured stdout from the SSH command

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
- Add conditional checks in GitHub Actions workflow to handle 'True' and 'False' outputs

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
- Rename `stdout` step to `stdout01` in the GitHub Actions workflow
- Rename `check stdout` step to `check stdout 01`
- Update references to `stdout` to `stdout01` in echo and grep commands
- Add a new step `stdout02` for SSH command execution with stdout capture
- Add a new step `check stdout 02` to validate the output of `stdout02` step

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
@appleboy appleboy merged commit 66aa4d3 into master Dec 5, 2024
16 checks passed
@appleboy appleboy deleted the script branch December 5, 2024 08:23
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

script_stop: true mess up cat command
1 participant