Upgrade to Drupal 11 with all dependencies #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
name: Testing | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
coverage: no | |
php-version: 8.3 | |
extensions: dom, curl, libxml, mbstring, zip, pdo, mysql, pdo_mysql, gd, apcu | |
- name: Install Dependencies | |
uses: ramsey/composer-install@v3 | |
- name: Setup Environment | |
run: | | |
sudo systemctl start mysql.service | |
mysql -uroot -h127.0.0.1 -proot -e 'CREATE DATABASE IF NOT EXISTS db;' | |
echo "ServerName localhost" | sudo tee -a /etc/apache2/apache2.conf | |
sudo systemctl restart apache2 | |
sudo systemctl status apache2 | |
hostname -I | |
- name: Unit & Kernel Tests | |
run: vendor/bin/phpunit --testsuite unit,kernel | |
- name: Install Drupal | |
run: bash scripts/install-ci.sh | |
- name: Existing Site Tests | |
run: vendor/bin/phpunit --testsuite existing-site |