add more complex e2e tests

main
Dragan Filipovic 2023-01-02 22:02:16 +01:00
parent ac90bba983
commit 2a85c96230
3 changed files with 7 additions and 7 deletions

View File

@ -8,7 +8,7 @@ on:
ARGS: ARGS:
description: 'ARGS' description: 'ARGS'
required: true required: true
default: '-rltgoDzvO' default: '-rltgoDzvO --delete --chmod=ugo=rwX'
EXCLUDE: EXCLUDE:
description: 'EXCLUDE' description: 'EXCLUDE'
required: true required: true
@ -16,7 +16,7 @@ on:
SSH_CMD_ARGS: SSH_CMD_ARGS:
description: 'SSH_CMD_ARGS' description: 'SSH_CMD_ARGS'
required: true required: true
default: '-o StrictHostKeyChecking=no' default: '-o StrictHostKeyChecking=no, -o AnotherArg=7'
env: env:
@ -76,11 +76,11 @@ jobs:
# SSH_PRIVATE_KEY: $EXAMPLE_SSH_PRIVATE_KEY # SSH_PRIVATE_KEY: $EXAMPLE_SSH_PRIVATE_KEY
# REMOTE_HOST: $EXAMPLE_REMOTE_HOST # REMOTE_HOST: $EXAMPLE_REMOTE_HOST
REMOTE_USER: ${{ env.TEST_USER }} REMOTE_USER: ${{ env.TEST_USER }}
ARGS: ${{ github.event.inputs.ARGS }} ARGS: ${{ github.event.inputs.ARGS || '-o StrictHostKeyChecking=no, -o AnotherArg=7' }}
SSH_CMD_ARGS: ${{ github.event.inputs.SSH_CMD_ARGS }} SSH_CMD_ARGS: ${{ github.event.inputs.SSH_CMD_ARGS || '-rltgoDzvO --delete --chmod=ugo=rwX' }}
SOURCE: "test_project/" SOURCE: "test_project/"
TARGET: "/var/www/html/" TARGET: "/var/www/html/"
EXCLUDE: ${{ github.event.inputs.EXCLUDE }} EXCLUDE: ${{ github.event.inputs.EXCLUDE || '/dist/, /node_modules/' }}
SCRIPT_BEFORE: | SCRIPT_BEFORE: |
whoami whoami
ls -al ls -al

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

View File

@ -14,7 +14,7 @@ const nodeRsyncPromise = async (config) => new Promise((resolve, reject) => {
console.error('❌ [Rsync] cmd: ', cmd); console.error('❌ [Rsync] cmd: ', cmd);
reject(new Error(`${error.message}\n\n${stderr}`)); reject(new Error(`${error.message}\n\n${stderr}`));
} else { } else {
console.log('[Rsync] cmd finished: ', cmd); console.log('[Rsync] cmd finished: ', cmd);
resolve(stdout); resolve(stdout);
} }
}); });