Skip to content

Commit 04eccc6

Browse files
committed
do not fail on experimental versions
1 parent b7b5901 commit 04eccc6

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/main.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
args: --prefer-dist --no-interaction
4040
php_version: ${{ matrix.php-version }}
4141
php_extensions: xml
42+
continue-on-error: ${{ matrix.experimental }}
4243

4344
- name: Report Versions
4445
run: |
@@ -53,13 +54,15 @@ jobs:
5354
vendor/bin/behat -V
5455
mysql --version
5556
mysqladmin --version
57+
continue-on-error: ${{ matrix.experimental }}
5658

5759
- name: Create Database
5860
run: |
5961
sudo systemctl start mysql.service
6062
sudo mysql -proot -e 'DROP DATABASE IF EXISTS phplistdb'
6163
sudo mysqladmin -proot create phplistdb
6264
sudo mysql -proot -e 'CREATE USER phplist@"%" IDENTIFIED BY "phplist"; GRANT ALL ON phplistdb.* TO phplist@"%"'
65+
continue-on-error: ${{ matrix.experimental }}
6366

6467
- name: Set Bootlist Theme
6568
run: |
@@ -68,6 +71,7 @@ jobs:
6871
tar -xzf master.tar.gz
6972
mv phplist-ui-bootlist-master phplist-ui-bootlist
7073
rm master.tar.gz
74+
continue-on-error: ${{ matrix.experimental }}
7175

7276
- name: Start Test Server
7377
run: |
@@ -78,17 +82,20 @@ jobs:
7882
./bin/start-selenium > output/selenium.log 2>&1 &
7983
sleep 5
8084
sudo php -S 0.0.0.0:80 -t public_html > /dev/null 2>&1 &
85+
continue-on-error: ${{ matrix.experimental }}
8186

8287
- name: Check PHP syntax errors
8388
uses: overtrue/phplint@2.4.1
8489
with:
8590
path: ./public_html
91+
continue-on-error: ${{ matrix.experimental }}
8692

8793
- name: Run BDD Tests UI
8894
run: |
8995
cd tests
9096
../vendor/bin/behat -p chrome -f progress --stop-on-failure --tags=@initialise
9197
../vendor/bin/behat -p chrome -f progress --tags="~@initialise && ~@wip"
98+
continue-on-error: ${{ matrix.experimental }}
9299

93100
- name: Run BDD Tests CLI
94101
run: |
@@ -99,6 +106,12 @@ jobs:
99106
php public_html/lists/admin/index.php -c public_html/lists/config/config.php -p initialise -f
100107
cd tests
101108
../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."
102115
103116
- name: Upload the Screenshots
104117
if: always()
@@ -109,7 +122,7 @@ jobs:
109122
retention-days: 3
110123

111124
- name: Display Output on Failure
112-
if: failure()
125+
if: failure() && !matrix.experimental
113126
run: |
114127
find . -type f
115128
cat output/selenium.log

0 commit comments

Comments
 (0)