Run thunder-develop tests #287
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: Run thunder-develop tests | |
on: | |
pull_request: | |
branches: | |
- 3.x | |
schedule: | |
- cron: '0 7 * * *' | |
jobs: | |
test: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
coverage: none | |
php-version: '8.1' | |
extensions: Imagick | |
- name: Start MySql service | |
run: | | |
sudo /etc/init.d/mysql start | |
mysql -uroot -proot -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';" | |
- name: Cache composer dependencies | |
uses: actions/cache@v1 | |
with: | |
path: ~/.composer/cache | |
key: ${{ runner.os }}-composer-cache-${{ hashFiles('**/composer.json') }} | |
restore-keys: ${{ runner.os }}-composer-cache- | |
- name: Configure repositories | |
run: | | |
composer config repositories.thunder git https://github.com/thunder/thunder-distribution.git | |
composer config repositories.admin git https://github.com/BurdaMagazinOrg/theme-thunder-admin.git | |
composer config repositories.paragraphs_features git https://github.com/thunder/paragraphs_features.git | |
composer config repositories.paragraphs_paste git https://git.drupalcode.org/project/paragraphs_paste.git | |
composer config repositories.select2 git https://git.drupalcode.org/project/select2.git | |
composer config repositories.ivw git https://git.drupalcode.org/project/ivw_integration.git | |
composer config repositories.update_helper git https://git.drupalcode.org/project/update_helper.git | |
composer config repositories.thunder_testing_demo git https://github.com/thunder/thunder_testing_demo.git | |
- name: Install dependencies | |
run: | | |
composer update || composer update | |
- name: Install Thunder | |
run: | | |
cd docroot | |
/usr/bin/env PHP_OPTIONS="-d sendmail_path=`which true`" ../vendor/bin/drush si thunder --db-url=mysql://root:[email protected]/thunder -y -vvv |