Skip to content

Commit

Permalink
Added transferring of tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
zinigor committed Oct 23, 2024
1 parent 8b74cdf commit 4df8ed7
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/wpcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ jobs:
- name: Configure Github to be able to SSH to the Atomic site
if: steps.changed.outputs.wpcomsh == 'true'
run: |
echo "Intializing"
echo "::group::setup"
echo "::group::Intializing"
mkdir -vp ~/.ssh/
chmod -v 700 ~/.ssh
Expand All @@ -65,8 +64,16 @@ jobs:
echo "::endgroup::"
echo "::group::Transferring wpcomsh to the testing server"
jetpack rsync wpcomsh [email protected]:~/htdocs/wp-content/mu-plugins
scp -r projects/plugins/wpcomsh/bin [email protected]:/srv/htdocs/wp-content/mu-plugins/wpcomsh
scp -r projects/plugins/wpcomsh/tests [email protected]:/srv/htdocs/wp-content/mu-plugins/wpcomsh/
scp projects/plugins/wpcomsh/phpunit.xml.dist [email protected]:/srv/htdocs/wp-content/mu-plugins/wpcomsh/
echo "::engroup::"
echo "::group::execution"
ssh -i ~/.ssh/id_site [email protected] "ls" || CODE=$?
ssh -i ~/.ssh/id_site [email protected] "~/htdocs/github-action-handler.sh" || CODE=$?
echo "::endgroup::"
echo "::group::teardown"
Expand Down

0 comments on commit 4df8ed7

Please sign in to comment.