Fix PHP 8.5 imagedestroy deprecation warning
#6666
Workflow file for this run
This file contains hidden or 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
| --- | |
| name: build | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| on: | |
| pull_request: &ignore-paths | |
| paths-ignore: | |
| - ".appveyor.yml" | |
| - ".dockerignore" | |
| - ".editorconfig" | |
| - ".git-blame-ignore-revs" | |
| - ".gitattributes" | |
| - ".github/CONTRIBUTING.md" | |
| - ".github/FUNDING.yml" | |
| - ".github/ISSUE_TEMPLATE.md" | |
| - ".github/PULL_REQUEST_TEMPLATE.md" | |
| - ".github/SECURITY.md" | |
| - ".gitignore" | |
| - ".gitlab-ci.yml" | |
| - "code-of-conduct.md" | |
| - "docs/**" | |
| - "framework/.gitignore" | |
| - "framework/.phpstorm.meta.php" | |
| - "framework/CHANGELOG.md" | |
| - "framework/LICENSE.md" | |
| - "framework/README.md" | |
| - "framework/UPGRADE.md" | |
| - "eslint.config.js" | |
| - "LICENSE.md" | |
| - "README.md" | |
| - "ROADMAP.md" | |
| push: *ignore-paths | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| PHP_EXTENSIONS: curl, dom, imagick, intl, mbstring, mcrypt, memcached | |
| PHP_INI_VALUES: apc.enabled=1,apc.shm_size=32M,apc.enable_cli=1, date.timezone='UTC' | |
| PHPUNIT_EXCLUDE_GROUP: db,wincache | |
| XDEBUG_MODE: coverage | |
| jobs: | |
| phpunit: | |
| name: PHP ${{ matrix.php }} | |
| env: | |
| COVERAGE_DRIVER: ${{ matrix.php < 8.1 && 'xdebug' || 'pcov' }} | |
| IGNORE_PLATFORM_REQS: false | |
| runs-on: ubuntu-latest | |
| services: &memcached-service | |
| memcached: | |
| image: memcached:latest | |
| ports: | |
| - 11211:11211 | |
| options: >- | |
| --health-cmd "timeout 5 bash -c 'cat < /dev/null > /dev/tcp/127.0.0.1/11211'" | |
| --health-interval 10s | |
| --health-retries 5 | |
| --health-timeout 5s | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php: [7.4, 8.0, 8.1, 8.2, 8.3, 8.4, 8.5] | |
| steps: &build-steps | |
| - name: Checkout. | |
| uses: actions/checkout@v5 | |
| - name: Generate french locale. | |
| run: sudo locale-gen fr_FR.UTF-8 | |
| - name: Setup PHP with Composer. | |
| uses: ./.github/actions/php-setup | |
| with: | |
| coverage-driver: ${{ env.COVERAGE_DRIVER }} | |
| extensions: ${{ matrix.php < 8.0 && 'apc' || 'apcu' }}, ${{ env.PHP_EXTENSIONS }} | |
| ignore-platform-reqs: ${{ env.IGNORE_PLATFORM_REQS }} | |
| ini-values: ${{ env.PHP_INI_VALUES }}, session.save_path="${{ runner.temp }}" | |
| php-version: ${{ matrix.php }} | |
| - name: Run PHPUnit tests. | |
| uses: ./.github/actions/phpunit | |
| with: | |
| coverage-driver: ${{ env.COVERAGE_DRIVER }} | |
| coverage-token: ${{ secrets.CODECOV_TOKEN }} | |
| exclude-group: ${{ env.PHPUNIT_EXCLUDE_GROUP }} | |
| phpunit-dev: | |
| name: PHP ${{ matrix.php }} | |
| env: | |
| COVERAGE_DRIVER: none | |
| IGNORE_PLATFORM_REQS: true | |
| runs-on: ubuntu-latest | |
| services: *memcached-service | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php: [8.6] | |
| steps: *build-steps |