Skip to content

Commit db5ff74

Browse files
committed
remove old versions
1 parent 4c76a4f commit db5ff74

1 file changed

Lines changed: 2 additions & 21 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ on:
1313
default: '7.4'
1414
type: choice
1515
options:
16-
- '5.6'
17-
- '7.0'
18-
- '7.1'
19-
- '7.2'
2016
- '7.3'
2117
- '7.4'
2218

@@ -25,10 +21,7 @@ jobs:
2521
runs-on: ubuntu-latest
2622
strategy:
2723
matrix:
28-
php: ['7.1', '7.2', '7.3', '7.4']
29-
#php: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2']
30-
31-
#if: ${{ github.event_name != 'workflow_dispatch' || contains(github.event.inputs.php_version, matrix.php) }}
24+
php: ['7.3', '7.4']
3225

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

@@ -54,19 +47,7 @@ jobs:
5447
restore-keys: ${{ runner.os }}-composer-
5548

5649
- name: Install dependencies
57-
run: |
58-
if [[ "${{ matrix.php }}" == "5.6" ]]; then
59-
composer require --dev phpunit/phpunit:^5.7 --no-update
60-
elif [[ "${{ matrix.php }}" == "7.0" ]]; then
61-
composer require --dev phpunit/phpunit:^6.5 --no-update
62-
elif [[ "${{ matrix.php }}" == "7.1" || "${{ matrix.php }}" == "7.2" ]]; then
63-
composer require --dev phpunit/phpunit:^7.5 --no-update
64-
elif [[ "${{ matrix.php }}" == "7.3" || "${{ matrix.php }}" == "7.4" ]]; then
65-
composer require --dev phpunit/phpunit:^8.5 --no-update
66-
else
67-
composer require --dev phpunit/phpunit:^9.5 --no-update
68-
fi
69-
composer install --prefer-dist --no-progress
50+
run: composer install --prefer-dist --no-progress
7051

7152
- name: Run PHPUnit
7253
run: composer test

0 commit comments

Comments
 (0)