Skip to content

Commit

Permalink
[TASK] Testing with php 8 (#9)
Browse files Browse the repository at this point in the history
Since there is no released core with php 8 compat yet,
we need to hack the testing docker-compose.yml slightly
to allow core dev-master packages for this run. This
can be dropped later again, but allows us early php 8
testing for this extension without spoiling normal
composer requirements.
  • Loading branch information
lolli42 committed Mar 5, 2021
1 parent 5fe26ee commit 4f8f23f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
php: [ '7.2', '7.3', '7.4' ]
php: [ '7.2', '7.3', '7.4', '8.0' ]
minMax: [ 'composerInstallMin', 'composerInstallMax' ]
steps:
- name: Checkout
Expand Down
16 changes: 16 additions & 0 deletions Build/testing-docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ services:
if [ ${SCRIPT_VERBOSE} -eq 1 ]; then
set -x
fi
if [ ${PHP_VERSION} == "8.0" ]; then
composer req --dev typo3/cms-core:"dev-master" \
typo3/cms-backend:"dev-master" \
typo3/cms-frontend:"dev-master" \
typo3/cms-extbase:"dev-master" \
typo3/cms-fluid:"dev-master" \
typo3/cms-recordlist:"dev-master"
fi
composer config --unset platform.php;
composer update --no-progress --no-interaction;
composer dumpautoload;
Expand All @@ -71,6 +79,14 @@ services:
if [ ${SCRIPT_VERBOSE} -eq 1 ]; then
set -x
fi
if [ ${PHP_VERSION} == "8.0" ]; then
composer req --dev typo3/cms-core:"dev-master" \
typo3/cms-backend:"dev-master" \
typo3/cms-frontend:"dev-master" \
typo3/cms-extbase:"dev-master" \
typo3/cms-fluid:"dev-master" \
typo3/cms-recordlist:"dev-master"
fi
composer config platform.php ${PHP_VERSION}.0;
composer update --prefer-lowest --no-progress --no-interaction;
composer dumpautoload;
Expand Down

0 comments on commit 4f8f23f

Please sign in to comment.