Skip to content

Commit

Permalink
Merge pull request #482 from localgovdrupal/fix/test-10.3
Browse files Browse the repository at this point in the history
Run tests against Drupal 10.3
  • Loading branch information
finnlewis authored Jun 11, 2024
2 parents 6c870cd + f7275e5 commit b4fa104
Showing 1 changed file with 7 additions and 6 deletions.
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

0 comments on commit b4fa104

Please sign in to comment.