From 3738ba2e4a6e902d651ac39c262669db56b2f23a Mon Sep 17 00:00:00 2001
From: jrfnl <jrfnl@users.noreply.github.com>
Date: Sat, 7 Aug 2021 02:28:05 +0200
Subject: [PATCH] Build/Tests: enable testing against PHP 8.1
PHP 8.1 is expected to be released end of November. Enabling the tests to run in CI on PHP 8.1 will allow us to get ready in time.
These builds are, for now, still allowed to fail.
---
.github/workflows/phpunit-tests.yml | 7 +++++--
tools/local-env/php-config.ini | 1 +
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/phpunit-tests.yml b/.github/workflows/phpunit-tests.yml
index b368524ca5..01581431ae 100644
a
|
b
|
jobs: |
63 | 63 | strategy: |
64 | 64 | fail-fast: false |
65 | 65 | matrix: |
66 | | php: [ '5.6.20', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0' ] |
| 66 | php: [ '5.6.20', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1' ] |
67 | 67 | os: [ ubuntu-latest ] |
68 | 68 | memcached: [ false ] |
69 | 69 | split_slow: [ false ] |
… |
… |
jobs: |
95 | 95 | memcached: false |
96 | 96 | multisite: false |
97 | 97 | report: true |
| 98 | |
| 99 | continue-on-error: ${{ matrix.php == '8.1' }} |
| 100 | |
98 | 101 | env: |
99 | 102 | LOCAL_PHP: ${{ matrix.php }}-fpm |
100 | 103 | LOCAL_PHP_MEMCACHED: ${{ matrix.memcached }} |
… |
… |
jobs: |
142 | 145 | docker-compose run --rm php composer --version |
143 | 146 | |
144 | 147 | # Install using `composer update` as there is no `composer.lock` file. |
145 | | if [ ${{ env.LOCAL_PHP }} == '8.0-fpm' ]; then |
| 148 | if [ ${{ env.LOCAL_PHP }} == '8.1-fpm' ]; then |
146 | 149 | docker-compose run --rm php composer update --ignore-platform-reqs |
147 | 150 | else |
148 | 151 | docker-compose run --rm php composer update |
diff --git a/tools/local-env/php-config.ini b/tools/local-env/php-config.ini
index 1f385e924c..4e5efb30d6 100644
a
|
b
|
|
| 1 | error_reporting = -1 |
1 | 2 | upload_max_filesize = 1G |
2 | 3 | post_max_size = 1G |