Skip to content

Commit 8a77edb

Browse files
committed
Drop support for PHP 5.4 and PHP 5.5
1 parent 7f80da0 commit 8a77edb

File tree

1 file changed

+19
-9
lines changed

1 file changed

+19
-9
lines changed

.github/workflows/tests.yml

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,24 @@ defaults:
1616
jobs:
1717

1818
tests:
19-
name: Tests (PHP ${{ matrix.php }}, PHP_CodeSniffer ${{ matrix.phpcs_version }})
20-
runs-on: Ubuntu-20.04
19+
name: "PHP ${{ matrix.php }}${{ matrix.with_coverage == true && ' with coverage' || ''}}, PHPCS ${{ matrix.phpcs_version }}"
20+
runs-on: ubuntu-latest
2121

2222
strategy:
2323
matrix:
24-
php: [ '5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4']
24+
php: [ '5.6', '7.0', '7.1', '7.2', '7.3', '7.4']
25+
with_coverage: [ false ]
2526
phpcs_version: ['^3.3']
2627
include:
27-
- php: 5.4
28-
phpcs_version: ^3.3@dev
2928
- php: 7.2
3029
phpcs_version: ^3.3@dev
30+
- php: 7.2
31+
with_coverage: true
3132
fail-fast: false
3233

3334
steps:
3435
- name: Checkout
35-
uses: actions/checkout@v2
36+
uses: actions/checkout@v4
3637
with:
3738
fetch-depth: 2
3839

@@ -48,16 +49,25 @@ jobs:
4849
composer require squizlabs/php_codesniffer:${{ matrix.phpcs_version }} --dev --no-update
4950
5051
- name: Install dependencies
51-
uses: "ramsey/composer-install@v1"
52+
uses: "ramsey/composer-install@v3"
5253
with:
5354
dependency-versions: "highest"
5455

55-
- name: Run tests
56+
- name: Run tests with Coverage
57+
if: "${{ matrix.with_coverage == true }}"
5658
run: |
5759
vendor/bin/phpunit -v --coverage-clover=coverage.clover
5860
61+
- name: Run tests without Coverage
62+
if: "${{ matrix.with_coverage == false }}"
63+
run: |
64+
vendor/bin/phpunit -v
65+
5966
- name: Upload Coverage to CodeCov
60-
uses: codecov/codecov-action@v2
67+
if: "${{ matrix.with_coverage == true }}"
68+
uses: codecov/codecov-action@v4
69+
with:
70+
token: ${{ secrets.CODECOV_TOKEN }}
6171

6272
- name: Upload Coverage to Scrutinizer CI (PHP < 8.0)
6373
if: "${{ matrix.php < '8.0' }}"

0 commit comments

Comments
 (0)