Skip to content

Commit 17f6738

Browse files
committed
- Remove platform constraint in composer which fouls up CI
- Install correct PHPUnit requirement on newer PHP versions
1 parent b787c37 commit 17f6738

File tree

3 files changed

+9
-15
lines changed

3 files changed

+9
-15
lines changed

.github/workflows/tests.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ jobs:
3333
composer-flags: ['']
3434
include:
3535
- php: '7.2'
36-
coverage: false
36+
coverage: 'none'
3737
- php: '8.0'
38-
coverage: false
38+
coverage: 'none'
3939
- php: '8.1'
40-
coverage: false
40+
coverage: 'none'
4141
- php: '8.2'
42-
coverage: false
42+
coverage: 'none'
4343

4444
steps:
4545
- uses: actions/checkout@v2
@@ -55,9 +55,9 @@ jobs:
5555

5656
- run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
5757

58-
- name: "Use PHPUnit 9.3+ on PHP 8"
58+
- name: "Use PHPUnit 9.3+ on PHP 8+"
5959
run: composer require --no-update --dev phpunit/phpunit:^9.3
60-
if: "matrix.php == '8.0'"
60+
if: ${{ matrix.php == '8.0' || matrix.php == '8.1' || matrix.php == '8.2' }}
6161

6262
- run: composer update --no-progress ${{ matrix.composer-flags }}
6363

@@ -67,8 +67,8 @@ jobs:
6767
- run: vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
6868
if: ${{ matrix.coverage != 'none' }}
6969

70-
- run: php vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover
71-
if: ${{ matrix.coverage != 'none' }}
70+
#- run: php vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover
71+
# if: ${{ matrix.coverage != 'none' }}
7272

7373
phpstan:
7474
name: PHPStan

composer.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
"allow-plugins": {
1414
"dealerdirect/phpcodesniffer-composer-installer": true,
1515
"phpstan/extension-installer": true
16-
},
17-
"platform": {
18-
"php": "7.2.99"
1916
}
2017
},
2118
"require": {

composer.lock

Lines changed: 1 addition & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)