Skip to content

Commit

Permalink
Add a CI job to test against PHPUnit 10
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean85 committed Apr 5, 2023
1 parent 4bc6efb commit 25f1af0
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CI
on:
push:
pull_request:
# Allow manually triggering the workflow.
# Allow manually triggering the workflow.
workflow_dispatch:

# Cancels all previous workflow runs for the same branch that have not yet completed.
Expand Down Expand Up @@ -35,8 +35,13 @@ jobs:
fail-fast: false
matrix:
php: ['7.3', '7.4', '8.0', '8.1']
include:
- name: with PHPUnit 10.1
php: '8.1'
phpunit: '10.1.x-dev' # change this with ^10.1 when released


name: PHP ${{ matrix.php }}
name: PHP ${{ matrix.php }} ${{ matrix.name }}

steps:
- name: Checkout code
Expand All @@ -49,6 +54,10 @@ jobs:
ini-values: zend.assertions=1, error_reporting=-1, display_errors=On
coverage: xdebug

- name: Lock to a specific PHPUnit version
if: matrix.phpunit
run: composer require --no-update --dev phpunit/phpunit:${{ matrix.phpunit }}

# Install dependencies and handle caching in one go.
# @link https://github.com/marketplace/actions/install-composer-dependencies
- name: Install Composer dependencies
Expand Down

0 comments on commit 25f1af0

Please sign in to comment.