Skip to content

ci: update expected image on old GD #53

ci: update expected image on old GD

ci: update expected image on old GD #53

Workflow file for this run

name: Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['8.4']
name: PHP ${{ matrix.php-versions }}
steps:
- uses: actions/checkout@v2
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: json, gd, imagick
ini-values: date.timezone=Europe/Paris, memory_limit=1G
- name: Check PHP Version
run: php -v
- name: Show GD info
run: 'php -r "print_r(gd_info());"'
- name: Install SVG renderer commands
run: |
sudo apt-get update
sudo apt-get install -y librsvg2-bin
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Run test suite
run: FIX_ROTATE_IMAGICK=1 vendor/bin/phpunit
analysis:
runs-on: ubuntu-latest
name: Static Analysis on PHP
steps:
- uses: actions/checkout@v2
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.4
extensions: json
ini-values: date.timezone=Europe/Paris, memory_limit=1G
- name: Check PHP Version
run: php -v
- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Run static analysis
run: vendor/bin/phpstan
- name: Run checkstyle
run: vendor/bin/php-cs-fixer check --diff --verbose
coverage:
name: Test coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.4
extensions: json, gd, imagick
ini-values: date.timezone=Europe/Paris
- name: Install SVG renderer commands
run: |
sudo apt-get update
sudo apt-get install -y librsvg2-bin
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Run test coverage
run: FIX_ROTATE_IMAGICK=1 ./vendor/bin/phpunit --coverage-clover=coverage.xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
files: coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}