Skip to content

Second pass for php 8.1, add more tests #18

Second pass for php 8.1, add more tests

Second pass for php 8.1, add more tests #18

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- master
- develop
jobs:
build:
runs-on: ubuntu-22.04
strategy:
fail-fast: true
matrix:
os:
- ubuntu-22.04
php:
- '8.1'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: imagick, fileinfo, mbstring
coverage: xdebug
- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-${{ matrix.php }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-${{ matrix.php }}-${{ matrix.dependencies }}-composer-
- name: Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer install --prefer-dist --no-progress
- name: Start MailHog
run: |
docker run -d -p 1025:1025 -p 8025:8025 mailhog/mailhog
- name: Run tests
run: vendor/bin/phpunit --coverage-clover=build/coverage-report.xml