Skip to content

PHP 8.1 Minimum version #6

PHP 8.1 Minimum version

PHP 8.1 Minimum version #6

Workflow file for this run

name: PHPUnit
on:
push:
branches:
- main
tags:
- "*.*.*"
pull_request:
branches:
- main
env:
REDIS_HOST: redis
jobs:
Build:
runs-on: 'ubuntu-latest'
container: 'byjg/php:${{ matrix.php-version }}-cli'
strategy:
matrix:
php-version:
- "8.3"
- "8.2"
- "8.1"
services:
redis:
image: redis:7
ports:
- "6379:6379"
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- run: composer install
- run: ./vendor/bin/phpunit
Documentation:
if: github.ref == 'refs/heads/main'
needs: Build
uses: byjg/byjg.github.io/.github/workflows/add-doc.yaml@master
with:
folder: php
project: ${{ github.event.repository.name }}
secrets: inherit