Skip to content

Test on PHP 8.4/8.5 and run lowest deps on every PHP version #25

Test on PHP 8.4/8.5 and run lowest deps on every PHP version

Test on PHP 8.4/8.5 and run lowest deps on every PHP version #25

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
jobs:
phpstan:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
- name: Install dependencies with Composer
uses: ramsey/composer-install@v3
- name: Run phpstan
run: vendor/bin/phpstan analyse --level=6 src/
tests:
strategy:
fail-fast: false
matrix:
dependencies:
- highest
- lowest
# PHP 7.3 and 7.4 are not built here: no laminas-diactoros release
# that Composer 2.10+ accepts as a psr/http-factory-implementation
# provider supports them, so the dev dependencies cannot even be
# installed on those versions.
php-versions:
- '8.0'
- '8.1'
- '8.2'
- '8.3'
- '8.4'
- '8.5'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Install dependencies with Composer
uses: ramsey/composer-install@v3
with:
dependency-versions: ${{ matrix.dependencies }}
- name: Run unit tests
run: vendor/bin/phpunit