Test Drupal 11 compatibility #4
Workflow file for this run
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: Drupal compatibility | ||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
schedule: | ||
- cron: '0 3 * * *' | ||
jobs: | ||
composer-project: | ||
name: ${{ matrix.template }} on PHP ${{ matrix.php }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
max-parallel: 10 | ||
matrix: | ||
php: [8.1, 8.2, 8.3] | ||
template: | ||
- recommended-project | ||
- legacy-project | ||
core_version: | ||
- ^10 | ||
- ^11 | ||
if: ${{ matrix.core_version }} == "^10" || ( ${{ matrix.core_version }} == "^11" && ${{ matrix.php }} >= 8.3 ) | ||
Check failure on line 26 in .github/workflows/drupal.yml GitHub Actions / Drupal compatibilityInvalid workflow file
|
||
steps: | ||
- name: Checkout self | ||
uses: actions/checkout@v2 | ||
with: | ||
path: composer-integration | ||
- name: Install PHP and Composer | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
tools: composer:v2 | ||
- name: Create Drupal project | ||
run: | | ||
composer create-project drupal/${{ matrix.template }}:${{ matrix.core_version }} project | ||
cd project | ||
composer config --no-plugins allow-plugins.php-tuf/composer-integration true | ||
composer config repositories.local path ../composer-integration | ||
composer require php-tuf/composer-integration:@dev --with-all-dependencies |