Skip to content

Commit

Permalink
CI: Drop tests on PHP < 5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed May 31, 2023
1 parent 592febc commit c9b915b
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ jobs:
strategy:
fail-fast: true
matrix:
php: ["5.4", "5.5", "5.6", "7.0", "7.1", "7.2", "7.3", "7.4", "8.0", "8.1", "8.2"]
php: ["5.6", "7.0", "7.1", "7.2", "7.3", "7.4", "8.0", "8.1", "8.2"]

name: PHP ${{ matrix.php }}

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -36,15 +36,6 @@ jobs:
composer require --dev 'phpunit/phpunit:^4.8.36 || ^5.7.21 || ^6 || ^7' --no-update
sed -i 's/: void//g' tests/*.php
- name: Setup tests for PHP <= 5.5
if: matrix.php <= 5.5
run: |
sed -i 's/expectException/setExpectedException/g' tests/*.php
- name: Setup tests for PHP >= 8.0
if: matrix.php >= 8.0
run: composer config platform.php 7.4

- name: Install dependencies
run: composer install --prefer-dist --no-interaction --no-progress

Expand Down

0 comments on commit c9b915b

Please sign in to comment.