Skip to content
Draft
Show file tree
Hide file tree
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
44 changes: 17 additions & 27 deletions .github/workflows/test-module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
name: Install LocalGov Drupal
runs-on: ubuntu-latest

env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}

strategy:
fail-fast: false
matrix:
Expand All @@ -38,10 +41,10 @@ jobs:
- localgov-version: '3.x'
drupal-version: '~10.0'
php-version: '8.4'
- localgov-version: '3.x'
- localgov-version: '4.x'
drupal-version: '~11.0'
php-version: '8.3'
- localgov-version: '3.x'
- localgov-version: '4.x'
drupal-version: '~11.0'
php-version: '8.4'

Expand Down Expand Up @@ -92,30 +95,17 @@ jobs:
repository: localgovdrupal/drupal-container
ref: php${{ matrix.php-version }}

# Split project creation to make debugging easier for now
- name: Create LocalGov Drupal 10 project
if: matrix.drupal-version == '~10.0'
- name: Create LocalGov Drupal project
run: |
composer create-project --stability dev --no-install localgovdrupal/localgov-project ./html "${{ matrix.localgov-version }}"
composer --working-dir=./html require --no-install localgovdrupal/localgov:${{ matrix.localgov-version }}-dev
composer --working-dir=./html require --no-install drupal/core-recommended:${{ matrix.drupal-version }} drupal/core-composer-scaffold:${{ matrix.drupal-version }} drupal/core-project-message:${{ matrix.drupal-version }} drupal/core-dev:${{ matrix.drupal-version }}
composer --working-dir=./html install

# Split project creation to make debugging easier for now
- name: Create LocalGov Drupal 11 project
if: matrix.drupal-version == '~11.0'
run: |
composer create-project --stability dev --no-install localgovdrupal/localgov-project ./html "3.2.x"
composer require --working-dir=./html --no-install --with-all-dependencies localgovdrupal/localgov:3.2.x-dev
composer require --working-dir=./html --no-install --with-all-dependencies drupal/core-recommended:${{ matrix.drupal-version }} drupal/core-composer-scaffold:${{ matrix.drupal-version }} drupal/core-project-message:${{ matrix.drupal-version }} drupal/core-dev:${{ matrix.drupal-version }}
composer install --working-dir=./html

- name: Obtain the test target using Composer
if: env.HEAD_USER == 'localgovdrupal'
run: |
composer --working-dir=html config repositories.1 vcs git@github.com:${{inputs.project}}.git
composer global config github-oauth.github.com ${{ github.token }}
composer --working-dir=./html require --with-all-dependencies ${{inputs.project}}:"${COMPOSER_REF} as ${LATEST_RELEASE}"
composer --working-dir=./html require --with-all-dependencies ${{ inputs.project }}:"${COMPOSER_REF} as ${LATEST_RELEASE}"

- name: Obtain the test target using Git
if: env.HEAD_USER != 'localgovdrupal'
Expand Down Expand Up @@ -144,9 +134,9 @@ jobs:
fail-fast: false
matrix:
localgov-version:
- '3.x'
- '4.x'
drupal-version:
- '~10.0'
- '~11.0'
php-version:
- '8.4'

Expand Down Expand Up @@ -181,9 +171,9 @@ jobs:
fail-fast: false
matrix:
localgov-version:
- '3.x'
- '4.x'
drupal-version:
- '~10.0'
- '~11.0'
php-version:
- '8.4'

Expand Down Expand Up @@ -218,9 +208,9 @@ jobs:
fail-fast: false
matrix:
localgov-version:
- '3.x'
- '4.x'
drupal-version:
- '~10.0'
- '~11.0'
php-version:
- '8.4'

Expand Down Expand Up @@ -255,7 +245,7 @@ jobs:
fail-fast: false
matrix:
localgov-version:
- '3.x'
- '4.x'
drupal-version:
- '~11.0'
php-version:
Expand Down Expand Up @@ -291,7 +281,7 @@ jobs:
fail-fast: false
matrix:
localgov-version:
- '3.x'
- '4.x'
drupal-version:
- '~11.0'
php-version:
Expand Down Expand Up @@ -342,10 +332,10 @@ jobs:
- localgov-version: '3.x'
drupal-version: '~10.0'
php-version: '8.4'
- localgov-version: '3.x'
- localgov-version: '4.x'
drupal-version: '~11.0'
php-version: '8.3'
- localgov-version: '3.x'
- localgov-version: '4.x'
drupal-version: '~11.0'
php-version: '8.4'

Expand Down
Loading