Skip to content

Commit 927ce34

Browse files
michieldaulona1
andauthored
Intialise cli tests (#813)
* bring check on the log table existing forward * enable initialise on commandline * better rendering in web mode * add tests for CLI initialise * update path to config file * set password the same as the UI test * fix merge error Co-authored-by: Aulona Kolicaj <[email protected]>
1 parent f53b36b commit 927ce34

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,23 @@ jobs:
8888
firefox -v
8989
vendor/bin/behat -V
9090
91-
- name: Run BDD Tests
91+
- name: Run BDD Tests UI
9292
run: |
9393
cd $GITHUB_WORKSPACE/tests
9494
../vendor/bin/behat -p chrome --stop-on-failure --tags=@initialise
9595
../vendor/bin/behat -p chrome --tags="~@initialise && ~@wip"
9696
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+
97108
- name: Upload the screenshots
98109
if: always()
99110
uses: actions/upload-artifact@v2

0 commit comments

Comments
 (0)