Fix imageManipulation::outputWebpFormat() encoding #238
Workflow file for this run
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
name: PHPUnit Tests | |
on: [push] | |
jobs: | |
phpunit: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-versions: ['8.2', '8.3', '8.4'] | |
prefer-lowest: ['','--prefer-lowest'] | |
name: PHP ${{ matrix.php-versions }} ${{ matrix.prefer-lowest }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: awalsh128/cache-apt-pkgs-action@latest | |
with: | |
packages: pngquant optipng | |
version: 1.0 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
extensions: gd | |
coverage: pcov | |
env: | |
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Get composer cache directory | |
id: composer-cache | |
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | |
- name: Cache dependencies | |
uses: actions/cache@v4 | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: ${{ runner.os }}-${{ matrix.php-version }}${{ matrix.prefer-lowest }}-composer-${{ hashFiles('**/composer.json') }} | |
restore-keys: ${{ runner.os }}-${{ matrix.php-version }}${{ matrix.prefer-lowest }}-composer- | |
- name: Install dependencies | |
run: composer update --prefer-dist ${{ matrix.prefer-lowest }} | |
env: | |
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Run phpunit | |
run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml | |
env: | |
S3_KEY: ${{ secrets.S3_KEY }} | |
S3_SECRET: ${{ secrets.S3_SECRET }} | |
S3_REGION: ${{ secrets.S3_REGION }} | |
S3_BUCKET: ${{ secrets.S3_BUCKET }} | |
- name: Run PHPStan | |
run: vendor/bin/phpstan analyse -c phpstan.neon --memory-limit=1G | |
- name: Upload coverage results to Coveralls | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
COVERALLS_PARALLEL: true | |
COVERALLS_FLAG_NAME: PHP ${{ matrix.php-versions }} ${{ matrix.prefer-lowest }} | |
run: vendor/bin/php-coveralls --coverage_clover=build/logs/clover.xml | |
finish-coverage: | |
needs: phpunit | |
runs-on: ubuntu-latest | |
steps: | |
- name: Coveralls Finished | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
parallel-finished: true |