Skip to content

Issue CollaboraOnline/collabora-drupal#52: Index readability. #206

Issue CollaboraOnline/collabora-drupal#52: Index readability.

Issue CollaboraOnline/collabora-drupal#52: Index readability. #206

Workflow file for this run

name: CI
on:
- push
jobs:
tests:
name: Run tests
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [8.1, 8.2, 8.3]
steps:
- uses: actions/checkout@v4
- name: Prepare docker-compose
run: |
set -x
# Set the php version in docker-compose.yml.
sed -i -e 's/httpd-php-dev:8.[0-9]/httpd-php-dev:${{ matrix.php }}/g' docker-compose.yml
# Report what was changed.
git diff
- name: Install docker-compose
run: |
set -x
sudo apt-get update
sudo apt-get install -y docker-compose
- name: Start docker-compose
run: |
docker-compose up -d
- name: Tune the container
run: |
set -x
# Report before.
docker-compose exec -T web php --version
docker-compose exec -T web php --info | grep xdebug.mode
# Disable xdebug.
docker-compose exec -T web phpdismod xdebug
# Restart the web server.
docker-compose exec -T web /etc/init.d/php${{ matrix.php }}-fpm restart
# Report after.
docker-compose exec -T web php --version
docker-compose exec -T web php --info | grep xdebug.mode || true
- name: Composer install
run: |
docker-compose exec -T web composer config --merge --json "extra.patches" '{"drupal/group": {"Using a translatable string as a category for field type is deprecated - https://www.drupal.org/project/group/issues/3458530": "https://www.drupal.org/files/issues/2024-07-02/group-translate-string-as-category-is-deprecated_0.patch"}}'
docker-compose exec -T web composer require --dev cweagans/composer-patches
- name: Drupal site install
run: |
docker-compose exec -T web ./vendor/bin/run drupal:site-install
- name: PhpUnit
run: |
docker-compose exec -T web ./vendor/bin/phpunit -vvv --debug
- name: PhpUnit - groupmedia 3
run: |
docker-compose exec -T web composer require --dev drupal/groupmedia:^3 -W
docker-compose exec -T web ./vendor/bin/phpunit -vvv --debug --testsuite "Collabora Online Group"