Skip to content

Update PHPUnit, drop PHP 7.1, add PHP 8.5 (#36) #16

Update PHPUnit, drop PHP 7.1, add PHP 8.5 (#36)

Update PHPUnit, drop PHP 7.1, add PHP 8.5 (#36) #16

Workflow file for this run

name: PHPUnit
on:
pull_request:
push:
permissions:
contents: read
jobs:
build:
name: PHPUnit
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-version: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5']
steps:
- uses: actions/checkout@v6
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- name: start redis serivces
shell: bash
run: |
docker run -d --name redis -e ALLOW_EMPTY_PASSWORD=yes -p 6379:6379 bitnami/redis:latest
- name: Composer install
run: composer install
- name: use newer phpunit if needed
run: |
composer config --unset platform.php
composer update
- name: PHPUnit / PHP ${{ matrix.php-version }}
run: ./vendor/bin/phpunit