Skip to content

Optional driver to use imagick #16

Optional driver to use imagick

Optional driver to use imagick #16

Workflow file for this run

name: tests
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
phpunit:
runs-on: ubuntu-latest
strategy:
matrix:
php: [8.0, 8.1]
name: PHP${{ matrix.php }}
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: gd
- name: Validate composer.json and composer.lock
run: composer validate
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-phpv2-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-phpv2-${{ matrix.php }}-
- name: Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: |
composer install
composer dump
- name: Run test phpunit
run: composer test