Skip to content

Commit 3e368d5

Browse files
committed
check sshpass
1 parent 9a719a8 commit 3e368d5

File tree

2 files changed

+46
-43
lines changed

2 files changed

+46
-43
lines changed

.github/workflows/build-release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ jobs:
105105
rsync --version
106106
firefox -v
107107
which sftp
108+
which sshpass
108109
vendor/bin/behat -V
109110
110111
- name: Run Behat Tests
@@ -204,4 +205,6 @@ jobs:
204205
access_key: ${{ secrets.AWS_KEY_ID }}
205206
secret_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
206207
#
207-
# - name: Upload the files
208+
- name: Upload the files
209+
run: |
210+

.github/workflows/main.yml

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,17 @@ jobs:
6060
mv phplist-ui-bootlist-master phplist-ui-bootlist
6161
rm master.tar.gz
6262
63-
- name: Start Test Server
64-
run: |
65-
cd $GITHUB_WORKSPACE
66-
cp -fv tests/ci/behat.yml tests/behat.yml
67-
cp -fv tests/ci/config.php public_html/lists/config/config.php
68-
mkdir -p output/screenshots
69-
touch output/screenshots/README.md
70-
mkdir -p build/mails
71-
./bin/start-selenium > output/selenium.log 2>&1 &
72-
sleep 5
73-
sudo php -S 0.0.0.0:80 -t public_html > /dev/null 2>&1 &
63+
# - name: Start Test Server
64+
# run: |
65+
# cd $GITHUB_WORKSPACE
66+
# cp -fv tests/ci/behat.yml tests/behat.yml
67+
# cp -fv tests/ci/config.php public_html/lists/config/config.php
68+
# mkdir -p output/screenshots
69+
# touch output/screenshots/README.md
70+
# mkdir -p build/mails
71+
# ./bin/start-selenium > output/selenium.log 2>&1 &
72+
# sleep 5
73+
# sudo php -S 0.0.0.0:80 -t public_html > /dev/null 2>&1 &
7474

7575
- name: Check PHP syntax errors
7676
uses: overtrue/[email protected]
@@ -88,36 +88,36 @@ jobs:
8888
firefox -v
8989
vendor/bin/behat -V
9090
91-
- name: Run BDD Tests UI
92-
run: |
93-
cd $GITHUB_WORKSPACE/tests
94-
../vendor/bin/behat -p chrome -f progress --stop-on-failure --tags=@initialise
95-
../vendor/bin/behat -p chrome -f progress --tags="~@initialise && ~@wip"
96-
97-
- name: Run BDD Tests CLI
98-
run: |
99-
cd $GITHUB_WORKSPACE
100-
101-
export ADMIN_PASSWORD=Mypassword123+
102-
export ORGANISATION_NAME="phpList"
103-
export ADMIN_NAME="phpList Administrator"
104-
php public_html/lists/admin/index.php -c $GITHUB_WORKSPACE/public_html/lists/config/config.php -p initialise -f
105-
cd $GITHUB_WORKSPACE/tests
106-
../vendor/bin/behat -p chrome --tags="~@initialise && ~@wip"
107-
108-
- name: Upload the screenshots
109-
if: always()
110-
uses: actions/upload-artifact@v2
111-
with:
112-
path: "output"
113-
name: "behat output"
114-
retention-days: 3
115-
116-
- name: Display output
117-
run: |
118-
cd $GITHUB_WORKSPACE
119-
# find . -type f
120-
# cat output/selenium.log
121-
if: ${{ failure() }}
91+
# - name: Run BDD Tests UI
92+
# run: |
93+
# cd $GITHUB_WORKSPACE/tests
94+
# ../vendor/bin/behat -p chrome -f progress --stop-on-failure --tags=@initialise
95+
# ../vendor/bin/behat -p chrome -f progress --tags="~@initialise && ~@wip"
96+
97+
# - name: Run BDD Tests CLI
98+
# run: |
99+
# cd $GITHUB_WORKSPACE
100+
101+
# export ADMIN_PASSWORD=Mypassword123+
102+
# export ORGANISATION_NAME="phpList"
103+
# export ADMIN_NAME="phpList Administrator"
104+
# php public_html/lists/admin/index.php -c $GITHUB_WORKSPACE/public_html/lists/config/config.php -p initialise -f
105+
# cd $GITHUB_WORKSPACE/tests
106+
# ../vendor/bin/behat -p chrome --tags="~@initialise && ~@wip"
107+
108+
# - name: Upload the screenshots
109+
# if: always()
110+
# uses: actions/upload-artifact@v2
111+
# with:
112+
# path: "output"
113+
# name: "behat output"
114+
# retention-days: 3
115+
116+
# - name: Display output
117+
# run: |
118+
# cd $GITHUB_WORKSPACE
119+
# # find . -type f
120+
# # cat output/selenium.log
121+
# if: ${{ failure() }}
122122

123123

0 commit comments

Comments
 (0)