ci: add workflow step for multi-command SSH testing (#386)
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				testing stable version / default-user-name-password (push) Has been cancelled
				
			
		
			
				
	
				testing stable version / check-ssh-key (push) Has been cancelled
				
			
		
			
				
	
				testing stable version / support-key-passphrase (push) Has been cancelled
				
			
		
			
				
	
				testing stable version / multiple-server (push) Has been cancelled
				
			
		
			
				
	
				testing stable version / support-ed25519-key (push) Has been cancelled
				
			
		
			
				
	
				testing stable version / testing-with-env (push) Has been cancelled
				
			
		
			
				
	
				testing main branch / default-user-name-password (push) Has been cancelled
				
			
		
			
				
	
				testing main branch / check-ssh-key (push) Has been cancelled
				
			
		
			
				
	
				testing main branch / support-key-passphrase (push) Has been cancelled
				
			
		
			
				
	
				testing main branch / multiple-server (push) Has been cancelled
				
			
		
			
				
	
				testing main branch / support-ed25519-key (push) Has been cancelled
				
			
		
			
				
	
				testing main branch / testing-with-env (push) Has been cancelled
				
			
		
			
				
	
				testing main branch / testing ipv6 (push) Has been cancelled
				
			
		
			
				
	
				testing main branch / some special character (push) Has been cancelled
				
			
		
			
				
	
				testing main branch / testing-capturing-output (push) Has been cancelled
				
			
		
			
				
	
				testing main branch / testing-script-stop (push) Has been cancelled
				
			
		
			
				
	
				testing main branch / testing-script-error (push) Has been cancelled
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	testing stable version / default-user-name-password (push) Has been cancelled
				
			testing stable version / check-ssh-key (push) Has been cancelled
				
			testing stable version / support-key-passphrase (push) Has been cancelled
				
			testing stable version / multiple-server (push) Has been cancelled
				
			testing stable version / support-ed25519-key (push) Has been cancelled
				
			testing stable version / testing-with-env (push) Has been cancelled
				
			testing main branch / default-user-name-password (push) Has been cancelled
				
			testing main branch / check-ssh-key (push) Has been cancelled
				
			testing main branch / support-key-passphrase (push) Has been cancelled
				
			testing main branch / multiple-server (push) Has been cancelled
				
			testing main branch / support-ed25519-key (push) Has been cancelled
				
			testing main branch / testing-with-env (push) Has been cancelled
				
			testing main branch / testing ipv6 (push) Has been cancelled
				
			testing main branch / some special character (push) Has been cancelled
				
			testing main branch / testing-capturing-output (push) Has been cancelled
				
			testing main branch / testing-script-stop (push) Has been cancelled
				
			testing main branch / testing-script-error (push) Has been cancelled
				
			- 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