From 75da8358d8d728a46ada9e03f66bb72f78aa3876 Mon Sep 17 00:00:00 2001 From: Matthias Steffens Date: Fri, 6 Oct 2023 19:05:56 +0200 Subject: [PATCH 1/9] #1108 Use (and test) Solr 9.3.0 with PHP 8 --- .github/workflows/php.yml | 19 +++++++++- Vagrantfile | 11 ++++-- bin/install_solr_docker.sh | 77 +++++++++++++++++++++++++++++++++++++- 3 files changed, 99 insertions(+), 8 deletions(-) mode change 100644 => 100755 bin/install_solr_docker.sh diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index b9d543f248..1f3d4e0dcd 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -16,7 +16,16 @@ jobs: strategy: matrix: - php-versions: ['7.1','8.1'] + php-versions: ['7.1', '8.1'] + solr-versions: ['7.7.3', '9.3.0'] + include: + - solr-versions: '9.3.0' + solr9-compatibility: true + exclude: + - php-versions: '7.1' + solr-versions: '9.3.0' + - php-versions: '8.1' + solr-versions: '7.7.3' fail-fast: false name: PHP ${{ matrix.php-versions }} Test @@ -32,6 +41,12 @@ jobs: - name: Install Composer and Dependencies run: sudo apt-get update && curl -s http://getcomposer.org/installer | php && php composer.phar self-update && php composer.phar install + - name: Install Solr 9-compatible opus4-search package + if: ${{ matrix.solr9-compatibility }} + run: | + composer remove --dev "opus4-repo/search" + composer require --dev "opus4-repo/search":"dev-upgradeSolr35 as 4.8.1" + - name: Fix for issue 502 run: sudo apt-get --fix-broken install @@ -39,7 +54,7 @@ jobs: run: sudo apt-get install libxml2-utils - name: Solr - run: sudo bash bin/install_solr_docker.sh + run: sudo bash bin/install_solr_docker.sh --version ${{ matrix.solr-versions }} - name: Start MySQL run: sudo systemctl start mysql.service diff --git a/Vagrantfile b/Vagrantfile index c323c0d8a4..d7533257d8 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -58,15 +58,16 @@ php bin/composer update SCRIPT $solr = <