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

Run tests against Drupal 10.3 #482

Merged
merged 4 commits into from
Jun 11, 2024
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/localgov_microsites.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
localgov-version:
- '4.x'
drupal-version:
- '~10.0'
- '~10.3'
php-version:
- '8.1'
- '8.2'
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
- name: Get the latest tagged release for branch version
run: |
LATEST_RELEASE=$(curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/${GITHUB_REPOSITORY}/git/matching-refs/tags/${GIT_BASE%'.x'} | grep -Po '(?<=refs/tags/)[^"]+' | tail -1)
if [ -z $LATEST_RELEASE ]; then LATEST_RELEASE=2.x-dev; fi
if [ -z $LATEST_RELEASE ]; then LATEST_RELEASE=4.x-dev; fi
echo "LATEST_RELEASE=${LATEST_RELEASE}" >> $GITHUB_ENV

- name: Cached workspace
Expand All @@ -81,7 +81,8 @@ jobs:
run: |
composer create-project --stability dev --no-install localgovdrupal/localgov_microsites_project ./html "${{ matrix.localgov-version }}"
composer --working-dir=./html require --no-install localgovdrupal/localgov_microsites:${{ 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 }}
sed -i 's/\@stable//' ./html/composer.json
composer --working-dir=./html update --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 }} -W
composer --working-dir=./html install

- name: Obtain the test target using Composer
Expand All @@ -108,7 +109,7 @@ jobs:
localgov-version:
- '4.x'
drupal-version:
- '~10.0'
- '~10.3'
php-version:
- '8.1'
- '8.2'
Expand Down Expand Up @@ -144,7 +145,7 @@ jobs:
localgov-version:
- '4.x'
drupal-version:
- '~10.0'
- '~10.3'
php-version:
- '8.1'
- '8.2'
Expand Down Expand Up @@ -179,7 +180,7 @@ jobs:
localgov-version:
- '4.x'
drupal-version:
- '~10.0'
- '~10.3'
php-version:
- '8.1'
- '8.2'
Expand Down
Loading