Skip to content

Bump test to 8.1 as the base #12

Bump test to 8.1 as the base

Bump test to 8.1 as the base #12

name: Composer test script
# Ensure composer test can be run from both fresh build and with test/vendor
# folder already installed, making sure contributors can rely on it to work locally.
on:
push:
branches: [ '**' ]
pull_request:
branches: [ '**' ]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ '8.3' ]
name: PHP ${{ matrix.php }}
steps:
- uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: json, imagick
tools: composer:v2
coverage: none
- name: Imagick SVG support
continue-on-error: true
run: sudo apt-get install libmagickcore-6.q16-3-extra
- name: Cache library packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.lock') }}
restore-keys: ${{ runner.os }}-php-composer-${{ matrix.setup }}-
- name: Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer up
- name: Run `composer test` twice
run: |
composer test
composer test