Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test PHP 8.0 #5

Merged
merged 7 commits into from
Jul 15, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
- "7.2"
- "7.3"
- "7.4"
- "8.0"
drupal-version:
- "8"
- "9"
Expand Down Expand Up @@ -48,22 +49,24 @@ jobs:

- name: set skip flag
id: skip
if: ${{ (matrix.drupal-version == '9' && matrix.php-version == '7.2') || (matrix.drush-version == '9' && matrix.drupal-version == '9') || (matrix.drush-version == '11' && matrix.php-version == '7.3') || (matrix.drush-version == '11' && matrix.php-version == '7.2') || (matrix.drupal-version == '8' && matrix.drush-version == '11') }}
if: ${{ (matrix.drupal-version == '9' && matrix.php-version == '7.2') || (matrix.drush-version == '9' && matrix.drupal-version == '9') || (matrix.drush-version == '11' && matrix.php-version == '7.3') || (matrix.drush-version == '11' && matrix.php-version == '7.2') || (matrix.drupal-version == '8' && matrix.drush-version == '11') || (matrix.drupal-version == '8' && matrix.php-version == '8.0') }}
run: echo "::set-output name=skip::1"

- name: Install drupal
if: matrix.drupal-version == '8'
if: ${{ matrix.drupal-version == '8' && steps.skip.outputs.skip != '1' }}
run: |
cd .. && composer create-project drupal/recommended-project:8.9.20 test-project --no-interaction
cd test-project
- name: install drupal
if: ${{ matrix.drupal-version == '9' && steps.skip.outputs.skip != '1' }}
run: |
cd .. && composer create-project drupal/recommended-project:9.4.1 test-project --no-interaction
cd .. && composer create-project --no-plugins drupal/recommended-project:9.4.1 test-project --no-interaction
- name: install Drush
if: ${{ steps.skip.outputs.skip != '1' }}
run: |
cd ../test-project
composer config --no-plugins allow-plugins.drupal/core-project-message true
composer config --no-plugins allow-plugins.composer/installers true
composer config --no-plugins allow-plugins.drupal/core-composer-scaffold true
composer require drush/drush:^${{ matrix.drush-version }}
- name: run tests
if: ${{ steps.skip.outputs.skip != '1' }}
Expand All @@ -72,8 +75,6 @@ jobs:
run: |
cd ..
cd test-project
composer config --no-plugins allow-plugins.composer/installers true
composer config --no-plugins allow-plugins.drupal/core-composer-scaffold true
composer install
./vendor/bin/drush si minimal --db-url=sqlite://sites/default/files/.ht.sqlite -y
mkdir -p drush/Commands/contrib
Expand Down