8787 cp -fv tests/ci/behat.yml tests/behat.yml
8888 cp -fv tests/ci/config.php public_html/lists/config/config.php
8989 mkdir -p output/screenshots
90+ chmod 777 output/screenshots
91+ mkdir /tmp/screenshots
92+ chmod 777 /tmp/screenshots
9093 mkdir -p build/mails
9194 ./bin/start-selenium > output/selenium.log 2>&1 &
9295 sleep 5
@@ -112,21 +115,31 @@ jobs:
112115 which sftp
113116 which sshpass
114117 vendor/bin/behat -V
118+ ls -l output
119+ ls -l output/screenshots
115120
116- - name : Run Behat Tests
121+ - name : Run Behat Tests # # problem encountered https://github.com/forceedge01/behat-fail-aid/issues/76
117122 run : |
118123 cd $GITHUB_WORKSPACE/tests
119- ../vendor/bin/behat -n -fprogress - p chrome --strict --stop-on-failure --tags=@initialise
120- ../vendor/bin/behat -n -fprogress - p chrome --strict --stop-on-failure --tags="~@initialise && ~@wip"
124+ ../vendor/bin/behat -n -p chrome --strict --stop-on-failure --tags=@initialise
125+ ../vendor/bin/behat -n -p chrome --strict --stop-on-failure --tags="~@initialise && ~@wip"
121126
122- - name : Upload the screenshots
127+ - name : Upload the output
123128 if : always()
124129 uses : actions/upload-artifact@v4
125130 with :
126131 path : " output"
127132 name : " behat output"
128133 retention-days : 3
129134
135+ - name : Upload the screenshots
136+ if : always()
137+ uses : actions/upload-artifact@v4
138+ with :
139+ path : " /tmp/screenshots/"
140+ name : " screenshots"
141+ retention-days : 3
142+
130143 - name : Clean Up
131144 run : |
132145 cd $GITHUB_WORKSPACE
@@ -259,7 +272,7 @@ jobs:
259272 cd $GITHUB_WORKSPACE
260273 cd ..
261274
262- sshpass -e sftp -oBatchMode=no -b - ${{ secrets.SF_USERNAME }}@${{ secrets.SF_HOST }} << EOF
275+ [[ $SSHPASS != "" ]] && sshpass -e sftp -oBatchMode=no -b - ${{ secrets.SF_USERNAME }}@${{ secrets.SF_HOST }} << EOF
263276 cd /home/frs/project/phplist/$RELEASE_FOLDER
264277 mkdir $RELEASE_VERSION
265278 cd $RELEASE_VERSION
0 commit comments