39
39
args : --prefer-dist --no-interaction
40
40
php_version : ${{ matrix.php-version }}
41
41
php_extensions : xml
42
+ continue-on-error : ${{ matrix.experimental }}
42
43
43
44
- name : Report Versions
44
45
run : |
@@ -53,13 +54,15 @@ jobs:
53
54
vendor/bin/behat -V
54
55
mysql --version
55
56
mysqladmin --version
57
+ continue-on-error : ${{ matrix.experimental }}
56
58
57
59
- name : Create Database
58
60
run : |
59
61
sudo systemctl start mysql.service
60
62
sudo mysql -proot -e 'DROP DATABASE IF EXISTS phplistdb'
61
63
sudo mysqladmin -proot create phplistdb
62
64
sudo mysql -proot -e 'CREATE USER phplist@"%" IDENTIFIED BY "phplist"; GRANT ALL ON phplistdb.* TO phplist@"%"'
65
+ continue-on-error : ${{ matrix.experimental }}
63
66
64
67
- name : Set Bootlist Theme
65
68
run : |
68
71
tar -xzf master.tar.gz
69
72
mv phplist-ui-bootlist-master phplist-ui-bootlist
70
73
rm master.tar.gz
74
+ continue-on-error : ${{ matrix.experimental }}
71
75
72
76
- name : Start Test Server
73
77
run : |
@@ -78,17 +82,20 @@ jobs:
78
82
./bin/start-selenium > output/selenium.log 2>&1 &
79
83
sleep 5
80
84
sudo php -S 0.0.0.0:80 -t public_html > /dev/null 2>&1 &
85
+ continue-on-error : ${{ matrix.experimental }}
81
86
82
87
- name : Check PHP syntax errors
83
88
uses : overtrue/phplint@2.4.1
84
89
with :
85
90
path : ./public_html
91
+ continue-on-error : ${{ matrix.experimental }}
86
92
87
93
- name : Run BDD Tests UI
88
94
run : |
89
95
cd tests
90
96
../vendor/bin/behat -p chrome -f progress --stop-on-failure --tags=@initialise
91
97
../vendor/bin/behat -p chrome -f progress --tags="~@initialise && ~@wip"
98
+ continue-on-error : ${{ matrix.experimental }}
92
99
93
100
- name : Run BDD Tests CLI
94
101
run : |
@@ -99,6 +106,12 @@ jobs:
99
106
php public_html/lists/admin/index.php -c public_html/lists/config/config.php -p initialise -f
100
107
cd tests
101
108
../vendor/bin/behat -p chrome --tags="~@initialise && ~@wip"
109
+ continue-on-error : ${{ matrix.experimental }}
110
+
111
+ - name : Handle Experimental Warnings
112
+ if : ${{ matrix.experimental && failure() }}
113
+ run : |
114
+ echo "::warning::PHP ${matrix.php-version} tests failed. This is marked as experimental and does not impact overall workflow success."
102
115
103
116
- name : Upload the Screenshots
104
117
if : always()
@@ -109,7 +122,7 @@ jobs:
109
122
retention-days : 3
110
123
111
124
- name : Display Output on Failure
112
- if : failure()
125
+ if : failure() && !matrix.experimental
113
126
run : |
114
127
find . -type f
115
128
cat output/selenium.log
0 commit comments