(Re-)add support for psr/http-message version 1.0 #82
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
jobs: | |
tests: | |
services: | |
mailhog: | |
image: mailhog/mailhog:v1.0.0 | |
env: | |
MH_SMTP_BIND_ADDR: 0.0.0.0:2025 | |
MH_API_BIND_ADDR: 0.0.0.0:9025 | |
MH_UI_BIND_ADDR: 0.0.0.0:9025 | |
ports: | |
- 2025:2025 | |
- 9025:9025 | |
runs-on: ubuntu-22.04 | |
name: Test | |
strategy: | |
fail-fast: false | |
matrix: | |
php: ["7.2", "7.3", "7.4", "8.0", "8.1", "8.2", "8.3"] | |
composer-flags: ["", "--prefer-lowest"] | |
env: | |
COMPOSER_ROOT_VERSION: dev-master | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "${{ matrix.php }}" | |
- name: Install dependencies | |
run: composer update ${{ matrix.composer-flags }} | |
- name: "Install PHPUnit 10" | |
run: composer require --dev phpunit/phpunit:^10.0 | |
if: "${{ startsWith(matrix.php, '8.') }}" | |
- name: Run tests | |
run: make test |