diff --git a/.devtools/assemble.sh b/.devtools/assemble.sh index 58226f4..1607783 100755 --- a/.devtools/assemble.sh +++ b/.devtools/assemble.sh @@ -171,6 +171,7 @@ pass "Suggested dependencies installed." # deprecation notices. # @see https://www.drupal.org/project/drupal/issues/1267246 if [ "${SYMFONY_DEPRECATIONS_HELPER-}" == "disabled" ]; then + note "Disabling deprecation notices in the functional tests." echo "error_reporting(E_ALL & ~E_DEPRECATED);" >>build/web/sites/default/default.settings.php fi diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7c55874..0640c80 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -108,6 +108,12 @@ jobs: php-version: ${{ matrix.php-version }} extensions: gd, sqlite, pdo_sqlite + # Disable Symfony deprecations helper for PHP 8.4+ until minor + # versions of Drupal 10 and 11 core fully support PHP 8.4+. + # @see https://www.drupal.org/project/drupal/issues/1267246 + - name: Update SYMFONY_DEPRECATIONS_HELPER for PHP 8.4+ + run: echo "SYMFONY_DEPRECATIONS_HELPER=$([[ "${{ matrix.php-version }}" < "8.4" ]] && echo 'disabled' || echo '')" >> $GITHUB_ENV + - name: Assemble the codebase run: .devtools/assemble.sh env: @@ -145,11 +151,6 @@ jobs: run: vendor/bin/phpunit || [ "${CI_TEST_IGNORE_FAILURE:-0}" -eq 1 ] env: BROWSERTEST_OUTPUT_DIRECTORY: /tmp - # Disable Symfony deprecations helper for PHP 8.4+ until minor - # versions of Drupal 10 and 11 core fully support PHP 8.4+. - # @see https://www.drupal.org/project/drupal/issues/1267246 - # SYMFONY_DEPRECATIONS_HELPER: ${{ matrix.php-version < '8.4' && 'disabled' }} - SYMFONY_DEPRECATIONS_HELPER: 'disabled' - name: Upload test results as an artifact uses: actions/upload-artifact@v4