add more complex e2e tests
parent
ac90bba983
commit
2a85c96230
|
@ -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
|
||||||
|
|
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);
|
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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue