Skip to content

Test Drupal 11 compatibility #4

Test Drupal 11 compatibility

Test Drupal 11 compatibility #4

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / Drupal compatibility

Invalid workflow file

The workflow is not valid. .github/workflows/drupal.yml (Line: 26, Col: 9): Unrecognized named-value: 'matrix'. Located at position 1 within expression: matrix.core_version
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