-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1708 from acquia/fix-failing-ci
ACMS-000: Update workflow to test on Drupal Core 10.2.x.
- Loading branch information
Showing
3 changed files
with
9 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -135,7 +135,7 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
orca-job: | ||
- ISOLATED_TEST_ON_NEXT_MINOR | ||
- ISOLATED_TEST_ON_CURRENT | ||
#php-version: [ "8.1" ] | ||
acms_job: | ||
- integrated_php_unit_tests | ||
|
@@ -171,11 +171,6 @@ jobs: | |
composer require "drupal/facets:^2.0.6" --no-update --no-install -d modules/acquia_cms_search | ||
composer require "drupal/pathauto:^1.11" --no-update --no-install -d modules/acquia_cms_common | ||
if [ "${ORCA_JOB}" = "ISOLATED_TEST_ON_CURRENT" ]; then | ||
# Update drupal/core patch as per Drupal Core version. | ||
sed -i 's/2023-11-30\/3370946-pagetitle-backport-10-2-x.patch/2023-09-11\/3370946-page-title-backport-10-1-x.patch/g' modules/acquia_cms_common/composer.json | ||
fi | ||
# Added below in CI to test acquia_cms on Drupal Core >=9.5. | ||
composer require "drupal/core:>=9.5" --no-update --no-install -d modules/acquia_cms_common | ||
sed -i 's/^core_version_requirement.*/core_version_requirement: ">=9.5"/' modules/acquia_cms_common/acquia_cms_common.info.yml | ||
|
@@ -244,7 +239,8 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
orca-job: | ||
- ISOLATED_TEST_ON_NEXT_MINOR | ||
- INTEGRATED_TEST_ON_PREVIOUS_MINOR | ||
- ISOLATED_TEST_ON_CURRENT | ||
php-version: | ||
- 8.1 | ||
- 8.2 | ||
|
@@ -285,7 +281,7 @@ jobs: | |
# Remove all PHPunit tests from acquia_cms modules. | ||
find modules/*/tests tests/src -type f -name "*Test.php" -exec rm -fr '{}' ';' | ||
if [ "${ORCA_JOB}" = "ISOLATED_TEST_ON_CURRENT" ]; then | ||
if [ "${ORCA_JOB}" = "INTEGRATED_TEST_ON_PREVIOUS_MINOR" ]; then | ||
# Update drupal/core patch as per Drupal Core version. | ||
sed -i 's/2023-11-30\/3370946-pagetitle-backport-10-2-x.patch/2023-09-11\/3370946-page-title-backport-10-1-x.patch/g' modules/acquia_cms_common/composer.json | ||
fi | ||
|
@@ -342,7 +338,7 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
orca-job: | ||
- ISOLATED_TEST_ON_NEXT_MINOR | ||
- ISOLATED_TEST_ON_CURRENT | ||
#php-version: [ "8.1" ] | ||
modules: | ||
- acquia_cms_article, acquia_cms_person, acquia_cms_place, acquia_cms_event | ||
|
@@ -388,11 +384,6 @@ jobs: | |
composer require "drupal/core:>=9.5" --no-update --no-install -d modules/acquia_cms_common | ||
sed -i 's/^core_version_requirement.*/core_version_requirement: ">=9.5"/' modules/acquia_cms_common/acquia_cms_common.info.yml | ||
if [ "${ORCA_JOB}" = "ISOLATED_TEST_ON_CURRENT" ]; then | ||
# Update drupal/core patch as per Drupal Core version. | ||
sed -i 's/2023-11-30\/3370946-pagetitle-backport-10-2-x.patch/2023-09-11\/3370946-page-title-backport-10-1-x.patch/g' modules/acquia_cms_common/composer.json | ||
fi | ||
modules_list=$(echo ${MODULES} | tr "," "\n") | ||
declare -a commands | ||
for module in ${modules_list} | ||
|
@@ -452,7 +443,7 @@ jobs: | |
|
||
GIT_COMMITTER_NAME: "Github Actions" | ||
GIT_COMMITTER_EMAIL: "[email protected]" | ||
ORCA_JOB: ISOLATED_TEST_ON_NEXT_MINOR | ||
ORCA_JOB: ISOLATED_TEST_ON_CURRENT | ||
ACMS_JOB: "upgrade_modules" | ||
strategy: | ||
fail-fast: false | ||
|
@@ -481,12 +472,6 @@ jobs: | |
# Added below in CI to test acquia_cms on Drupal Core >=9.5. | ||
composer require "drupal/core:>=9.5" --no-update --no-install -d modules/acquia_cms_common | ||
sed -i 's/^core_version_requirement.*/core_version_requirement: ">=9.5"/' modules/acquia_cms_common/acquia_cms_common.info.yml | ||
if [ "${ORCA_JOB}" = "ISOLATED_TEST_ON_CURRENT" ]; then | ||
# Update drupal/core patch as per Drupal Core version. | ||
sed -i 's/2023-11-30\/3370946-pagetitle-backport-10-2-x.patch/2023-09-11\/3370946-page-title-backport-10-1-x.patch/g' modules/acquia_cms_common/composer.json | ||
fi | ||
./tests/ci/before_install.blt.sh | ||
- name: Install | ||
shell: 'script -q -e -c "bash {0}"' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.