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

[WIP] feat: add drupal 11 workflow testing #19

Draft
wants to merge 42 commits into
base: 1.x
Choose a base branch
from
Draft
Changes from 5 commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
3286e11
feat: add drupal 11 workflow testing
millnut Dec 12, 2024
75c735b
feat: add drupal 11 workflow testing
millnut Dec 12, 2024
691701a
feat: add drupal 11 workflow testing
millnut Dec 12, 2024
73c46c7
feat: add drupal 11 workflow testing
millnut Dec 12, 2024
fa19b11
feat: add drupal 11 workflow testing
millnut Dec 12, 2024
7fcb62e
Install LGD dependencies needed for D11 support
stephen-cox Dec 18, 2024
edade4e
Update LGD D11 dependency install
stephen-cox Dec 18, 2024
22f24e4
Use install D10 LGD project using branch with composer overrides
stephen-cox Dec 18, 2024
f8f7385
Added localgov_geo to LGD dependencies that need installing
stephen-cox Dec 18, 2024
a2412eb
feat: add drupal 11 workflow testing
millnut Dec 24, 2024
47b4be7
feat: add drupal 11 workflow testing
millnut Dec 24, 2024
98085e3
feat: add drupal 11 workflow testing
millnut Dec 24, 2024
9dab4a7
feat: add drupal 11 workflow testing
millnut Dec 24, 2024
cfd7ffb
feat: add drupal 11 workflow testing
millnut Dec 24, 2024
a7f8d03
feat: add drupal 11 workflow testing
millnut Dec 24, 2024
531f72b
feat: add drupal 11 workflow testing
millnut Dec 24, 2024
661d1d6
feat: add drupal 11 workflow testing
millnut Dec 24, 2024
3427470
feat: add drupal 11 workflow testing
millnut Dec 24, 2024
1559cd9
feat: add drupal 11 workflow testing
millnut Dec 24, 2024
2e10f84
feat: add drupal 11 workflow testing
millnut Dec 24, 2024
0c47e11
feat: add drupal 11 workflow testing
millnut Dec 24, 2024
cf60368
feat: add drupal 10 and php 8.4 workflow testing
millnut Dec 24, 2024
4aec463
feat: add drupal 11 workflow testing
millnut Dec 25, 2024
a8d8998
feat: add drupal 11 workflow testing
millnut Dec 25, 2024
0235887
feat: add drupal 11 workflow testing
millnut Dec 25, 2024
056b2ab
feat: add drupal 11 workflow testing
millnut Dec 25, 2024
43f32ec
feat: add drupal 11 workflow testing
millnut Dec 25, 2024
d04acab
feat: add drupal 11 workflow testing
millnut Dec 25, 2024
9872bf1
feat: add drupal 11 workflow testing
millnut Dec 25, 2024
0ceab9c
feat: add drupal 11 workflow testing
millnut Dec 25, 2024
227c241
feat: add drupal 11 workflow testing
millnut Dec 25, 2024
ea3f6b5
feat: add drupal 11 workflow testing
millnut Dec 25, 2024
750697b
feat: add drupal 11 workflow testing
millnut Dec 25, 2024
94a1adb
feat: add drupal 11 workflow testing
millnut Dec 25, 2024
7fc8173
feat: add drupal 11 workflow testing
millnut Dec 25, 2024
8271917
feat: add drupal 11 workflow testing
millnut Dec 25, 2024
9a1979f
feat: add drupal 11 workflow testing
millnut Dec 25, 2024
d0eb02e
feat: add drupal 11 workflow testing
millnut Dec 25, 2024
3aef221
feat: add drupal 11 workflow testing
millnut Dec 25, 2024
41238d4
feat: add drupal 11 workflow testing
millnut Dec 31, 2024
f5457d8
feat: add drupal 11 workflow testing
millnut Dec 31, 2024
bdf0288
feat: add drupal 11 workflow testing
millnut Jan 1, 2025
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
71 changes: 53 additions & 18 deletions .github/workflows/test-module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,27 @@ jobs:
strategy:
fail-fast: false
matrix:
localgov-version:
- '3.x'
drupal-version:
- '~10.0'
php-version:
- '8.1'
- '8.2'
- '8.3'
include:
- localgov-version: '3.x'
localgov-project-version: '3.x'
drupal-version: '~10.0'
php-version: '8.1'
- localgov-version: '3.x'
localgov-project-version: '3.x'
drupal-version: '~10.0'
php-version: '8.2'
- localgov-version: '3.x'
localgov-project-version: '3.x'
drupal-version: '~10.0'
php-version: '8.3'
- localgov-version: '3.x'
localgov-project-version: '4.x'
drupal-version: '~11.0'
php-version: '8.3'
- localgov-version: '3.x'
localgov-project-version: '4.x'
drupal-version: '~11.0'
php-version: '8.4'

steps:
- name: Save git branch and git repo names to env if this is not a pull request
Expand Down Expand Up @@ -81,13 +94,22 @@ jobs:
repository: localgovdrupal/drupal-container
ref: php${{ matrix.php-version }}

- name: Create LocalGov Drupal project
- name: Create LocalGov Drupal 10 project
if: matrix.drupal-version == '~10.0'
run: |
composer create-project --stability dev --no-install localgovdrupal/localgov-project ./html "${{ matrix.localgov-version }}"
composer create-project --stability dev --no-install localgovdrupal/localgov-project ./html "${{ matrix.localgov-project-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

- name: Create LocalGov Drupal 11 project
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a temporary workaround until the localgov profile supports D11

if: matrix.drupal-version == '~11.0'
run: |
composer create-project --stability dev --no-install localgovdrupal/localgov-project ./html "${{ matrix.localgov-project-version }}"
composer --working-dir=./html require --no-install localgovdrupal/localgov:dev-feature/3.x/d11-support
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

- name: Obtain the test target using Composer
if: env.HEAD_USER == 'localgovdrupal'
run: |
Expand Down Expand Up @@ -299,14 +321,27 @@ jobs:
strategy:
fail-fast: false
matrix:
localgov-version:
- '3.x'
drupal-version:
- '~10.0'
php-version:
- '8.1'
- '8.2'
- '8.3'
include:
- localgov-version: '3.x'
localgov-project-version: '3.x'
drupal-version: '~10.0'
php-version: '8.1'
- localgov-version: '3.x'
localgov-project-version: '3.x'
drupal-version: '~10.0'
php-version: '8.2'
- localgov-version: '3.x'
localgov-project-version: '3.x'
drupal-version: '~10.0'
php-version: '8.3'
- localgov-version: '3.x'
localgov-project-version: '4.x'
drupal-version: '~11.0'
php-version: '8.3'
- localgov-version: '3.x'
localgov-project-version: '4.x'
drupal-version: '~11.0'
php-version: '8.4'

steps:
- name: Clone Drupal container
Expand Down