-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (37 loc) · 1.46 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Test composer install
on:
pull_request:
branches:
- 4.x
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
coverage: none
php-version: 8.1
extensions: Imagick, gd, pdo_mysql
- 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: 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: Allow all plugins
run: |
composer config allow-plugins.cweagans/composer-patches true --no-plugins
composer config allow-plugins.drupal/core-composer-scaffold true --no-plugins
composer config allow-plugins.composer/installers true --no-plugins
composer config allow-plugins.oomphinc/composer-installers-extender true --no-plugins
composer config allow-plugins.dealerdirect/phpcodesniffer-composer-installer true --no-plugins
composer config allow-plugins.phpstan/extension-installer true --no-plugins
- name: Install dependencies
run: composer install
- name: Install Thunder
run: vendor/bin/drush si thunder --db-url=mysql://root:[email protected]/testing -y