Install and use ImageMagick

This commit is contained in:
Jonny Barnes 2020-10-17 13:01:28 +01:00
parent 70cd4b2ea3
commit d598c1c280

View file

@ -6,7 +6,7 @@ on:
jobs: jobs:
phpunit: phpunit:
runs-on: ubuntu-latest runs-on: ubuntu-20.04
name: PHPUnit test suite name: PHPUnit test suite
@ -29,6 +29,14 @@ jobs:
key: ${{ runner.os }}-${{ hashFiles('**/package.json') }} key: ${{ runner.os }}-${{ hashFiles('**/package.json') }}
- name: Install npm dependencies - name: Install npm dependencies
run: npm install run: npm install
- name: Install ImageMagick
run: apt install imagemagick
- name: Setup PHP with pecl extension
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
tools: pecl
extensions: imagick
- name: Copy .env - name: Copy .env
run: php -r "file_exists('.env') || copy('.env.github', '.env');" run: php -r "file_exists('.env') || copy('.env.github', '.env');"
- name: Install dependencies - name: Install dependencies