Skip to content

Issue #43: Write meaningful doc comments. #191

Issue #43: Write meaningful doc comments.

Issue #43: Write meaningful doc comments. #191

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 install --no-interaction
- name: PhpCS
run: |
docker-compose exec -T web ./vendor/bin/phpcs -s
- 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