Skip to content

Commit

Permalink
Update PhpUnit versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mambax7 authored Jun 8, 2024
1 parent 79f89a8 commit 6947b9e
Showing 1 changed file with 29 additions and 9 deletions.
38 changes: 29 additions & 9 deletions .github/workflows/pr_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ name: CI
on: [push, pull_request]

jobs:
phpunit-7-1:
phpunit-9-6:
strategy:
fail-fast: false
matrix:
php_version: ["7.1", "7.4"]
php_version: ["7.4", "8.1", "8.2", "8.3"]
runs-on: ubuntu-latest

steps:
Expand All @@ -20,25 +20,45 @@ jobs:
with:
php-version: ${{ matrix.php_version }}
coverage: xdebug
- name: Unit Tests with PHPUnit 7.1
run: vendor/bin/phpunit --stderr --version 7.1
- name: Unit Tests with PHPUnit 9.6
run: vendor/bin/phpunit --stderr --version 9.6

phpunit-10-5:
strategy:
fail-fast: false
matrix:
php_version: ["8.1", "8.2", "8.3"]
runs-on: ubuntu-latest

phpunit-9-6:
steps:
- uses: actions/checkout@v2
- uses: php-actions/composer@v6
with:
php_version: "8.1"
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php_version }}
coverage: xdebug
- name: Unit Tests with PHPUnit 10.5
run: vendor/bin/phpunit --stderr --version 10.5

phpunit-11-2:
strategy:
fail-fast: false
matrix:
php_version: ["8.1"]
php_version: ["8.2", "8.3"]
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: php-actions/composer@v6
with:
php_version: "7.4"
php_version: "8.2"
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php_version }}
coverage: xdebug
- name: Unit Tests with PHPUnit 9.6
run: vendor/bin/phpunit --stderr --version 9.6
- name: Unit Tests with PHPUnit 11.2
run: vendor/bin/phpunit --stderr --version 11.2

0 comments on commit 6947b9e

Please sign in to comment.