add more complex e2e tests
This commit is contained in:
		
							parent
							
								
									ac90bba983
								
							
						
					
					
						commit
						2a85c96230
					
				
							
								
								
									
										10
									
								
								.github/workflows/e2e.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								.github/workflows/e2e.yml
									
									
									
									
										vendored
									
									
								
							@ -8,7 +8,7 @@ on:
 | 
			
		||||
      ARGS:
 | 
			
		||||
        description: 'ARGS'
 | 
			
		||||
        required: true
 | 
			
		||||
        default: '-rltgoDzvO'
 | 
			
		||||
        default: '-rltgoDzvO --delete --chmod=ugo=rwX'
 | 
			
		||||
      EXCLUDE:
 | 
			
		||||
        description: 'EXCLUDE'
 | 
			
		||||
        required: true
 | 
			
		||||
@ -16,7 +16,7 @@ on:
 | 
			
		||||
      SSH_CMD_ARGS:
 | 
			
		||||
        description: 'SSH_CMD_ARGS'
 | 
			
		||||
        required: true
 | 
			
		||||
        default: '-o StrictHostKeyChecking=no'
 | 
			
		||||
        default: '-o StrictHostKeyChecking=no, -o AnotherArg=7'
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
env:
 | 
			
		||||
@ -76,11 +76,11 @@ jobs:
 | 
			
		||||
          # SSH_PRIVATE_KEY: $EXAMPLE_SSH_PRIVATE_KEY
 | 
			
		||||
          # REMOTE_HOST: $EXAMPLE_REMOTE_HOST
 | 
			
		||||
          REMOTE_USER: ${{ env.TEST_USER }}
 | 
			
		||||
          ARGS: ${{ github.event.inputs.ARGS }}
 | 
			
		||||
          SSH_CMD_ARGS: ${{ github.event.inputs.SSH_CMD_ARGS }}
 | 
			
		||||
          ARGS: ${{ github.event.inputs.ARGS || '-o StrictHostKeyChecking=no, -o AnotherArg=7' }}
 | 
			
		||||
          SSH_CMD_ARGS: ${{ github.event.inputs.SSH_CMD_ARGS || '-rltgoDzvO --delete --chmod=ugo=rwX' }}
 | 
			
		||||
          SOURCE: "test_project/"
 | 
			
		||||
          TARGET: "/var/www/html/"
 | 
			
		||||
          EXCLUDE: ${{ github.event.inputs.EXCLUDE }}
 | 
			
		||||
          EXCLUDE: ${{ github.event.inputs.EXCLUDE || '/dist/, /node_modules/' }}
 | 
			
		||||
          SCRIPT_BEFORE: |
 | 
			
		||||
            whoami
 | 
			
		||||
            ls -al
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										2
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							@ -14,7 +14,7 @@ const nodeRsyncPromise = async (config) => new Promise((resolve, reject) => {
 | 
			
		||||
        console.error('❌ [Rsync] cmd: ', cmd);
 | 
			
		||||
        reject(new Error(`${error.message}\n\n${stderr}`));
 | 
			
		||||
      } else {
 | 
			
		||||
        console.log('[Rsync] cmd finished: ', cmd);
 | 
			
		||||
        console.log('⭐ [Rsync] cmd finished: ', cmd);
 | 
			
		||||
        resolve(stdout);
 | 
			
		||||
      }
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user