Skip to content

Add PHP versions 7.1-8.5 to GHA. #6

Add PHP versions 7.1-8.5 to GHA.

Add PHP versions 7.1-8.5 to GHA. #6

name: PHP Unit Tests
on:
- push
- pull_request
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
php-version:
- '5.5'
- '5.6'
- '7.0'
- '7.1'
- '7.2'
- '7.3'
- '7.4'
- '8.0'
- '8.1'
- '8.2'
- '8.3'
- '8.4'
- '8.5'
include:
- php-version:
- '7.0'
- '7.1'
- '7.2'
- '7.3'
- '7.4'
- '8.0'
- '8.1'
- '8.2'
- '8.3'
- '8.4'
- '8.5'
allow_failure: true
continue-on-error: ${{ matrix.allow_failure || false }}
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
coverage: xdebug
extensions: gd, json, mbstring
php-version: ${{ matrix.php-version }}
- run: composer install --no-interaction --prefer-dist
- run: vendor/bin/phpunit
- uses: codecov/codecov-action@v5
if: success()
with:
token: ${{ secrets.CODECOV_TOKEN }}
- uses: coverallsapp/github-action@v2
if: success()