Skip to content

Commit 5c32c12

Browse files
authored
Use bluehorndigital/setup-drupal (#171)
* Use bluehorndigital/setup-drupal Fixes #170 * Update to v1.0.1
1 parent 8865b53 commit 5c32c12

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

.github/workflows/php.yml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
coverage: "none"
3838
php-version: "${{ matrix.php-version }}"
3939
tools: composer:v2
40-
extensions: dom, curl, libxml, mbstring, zip, pdo, mysql, pdo_mysql, bcmath, gd, exif, iconv
40+
extensions: dom, curl, libxml, mbstring, zip, pdo, mysql, pdo_mysql, gd
4141
- name: "Install dependencies"
4242
run: "composer update --no-progress --prefer-dist"
4343
- name: "Downgrade dev dependencies"
@@ -84,20 +84,10 @@ jobs:
8484
tools: composer:v2
8585
extensions: dom, curl, libxml, mbstring, zip, pdo, mysql, pdo_mysql, bcmath, gd, exif, iconv
8686
- name: Setup Drupal
87-
run: |
88-
COMPOSER_MEMORY_LIMIT=-1 composer create-project drupal/recommended-project:${{ matrix.drupal }} ~/drupal --no-interaction
89-
cd ~/drupal
90-
composer config minimum-stability dev
91-
composer config prefer-stable true
92-
composer config preferred-install dist
93-
composer config repositories.0 path $GITHUB_WORKSPACE
94-
composer config repositories.1 composer https://packages.drupal.org/8
95-
COMPOSER_MEMORY_LIMIT=-1 composer require drupal/core-dev:${{ matrix.drupal }} --with-all-dependencies
96-
- name: "Add phpspec/prophecy-phpunit"
97-
run: |
98-
cd ~/drupal
99-
COMPOSER_MEMORY_LIMIT=-1 composer require --dev phpspec/prophecy-phpunit:^2
100-
if: ${{ matrix.drupal == '^9.0' }}
87+
uses: bluehorndigital/[email protected]
88+
with:
89+
version: ${{ matrix.drupal }}
90+
path: ~/drupal
10191
- name: "require phpstan-drupal"
10292
run: |
10393
cd ~/drupal

0 commit comments

Comments
 (0)