Skip to content

Upgrade Library to work with latest PHP Versions #14

Upgrade Library to work with latest PHP Versions

Upgrade Library to work with latest PHP Versions #14

Workflow file for this run

name: PHPUnit
on:
push:
branches:
- master
tags:
- "*.*.*"
pull_request:
branches:
- master
jobs:
Build:
runs-on: 'ubuntu-latest'
container: 'byjg/php:${{ matrix.php-version }}-cli'
strategy:
matrix:
include:
- php-version: "8.2"
imagick: "php82-pecl-imagick"
- php-version: "8.1"
imagick: "php81-pecl-imagick"
- php-version: "8.0"
imagick: "php8-pecl-imagick --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/"
- php-version: "7.4"
imagick: "php7-pecl-imagick"
steps:
- name: Install dependencies for test
run: |
apk add --no-cache ${{ matrix.imagick }}
- uses: actions/checkout@v4
- run: composer install
- run: ./vendor/bin/phpunit
Documentation:
if: github.ref == 'refs/heads/master'
needs: Build
uses: byjg/byjg.github.io/.github/workflows/add-doc.yaml@master
with:
folder: php
project: ${{ github.event.repository.name }}
secrets: inherit