Skip to content

Commit

Permalink
Test on PHP 8.0 (#28)
Browse files Browse the repository at this point in the history
* Try to test with --ignore-platform-reqs
* Fix action condition
* Fix action condition, again
* Fix action condition, take three
* Skip coverage for PHP 8
* Add changelog entry
* Bump actual requirements; fix PHPUnit config
  • Loading branch information
Jean85 committed Sep 14, 2020
1 parent a3a78df commit 408d285
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
- '7.2'
- '7.3'
- '7.4'
- '8.0'

name: PHP ${{ matrix.php }} tests
steps:
Expand All @@ -30,8 +31,15 @@ jobs:
coverage: xdebug

- run: composer install --no-progress --ansi
if: matrix.php != '8.0'
- run: composer install --no-progress --ansi --ignore-platform-reqs
if: matrix.php == '8.0'
- run: vendor/bin/phpunit --coverage-clover=coverage.xml
if: matrix.php != '8.0'
- run: vendor/bin/phpunit
if: matrix.php == '8.0'
- uses: codecov/codecov-action@v1
if: matrix.php != '8.0'
with:
file: './coverage.xml'
fail_ci_if_error: true
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes of the `jean85/pretty-package-versions` package are documented in this file using the
[Keep a CHANGELOG](http://keepachangelog.com/) principles.

## [1.5.1] - 2020-09-14
### Added
* PHP 8 support (#28)

## [1.5] - 2020-06-23
This release is intended to change the future release plan of this package. Please require the package with `^1.5 || ^2.0` to ensure full functionalities and future Composer 2 compatibility.

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"description": "A wrapper for ocramius/package-versions to get pretty versions strings",
"type": "library",
"require": {
"php": "^7.0",
"php": "^7.0|^8.0",
"composer/package-versions-deprecated": "^1.8.0"
},
"require-dev": {
"phpunit/phpunit": "^6.0"
"phpunit/phpunit": "^6.0|^8.5|^9.2"
},
"license": "MIT",
"authors": [
Expand Down
5 changes: 1 addition & 4 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
backupGlobals="false"
colors="true"
bootstrap="vendor/autoload.php"
Expand All @@ -15,9 +15,6 @@
<testsuite name="unit">
<directory>./tests/Unit/</directory>
</testsuite>
</testsuites>

<testsuites>
<testsuite name="functional">
<directory>./tests/Functional/</directory>
</testsuite>
Expand Down

0 comments on commit 408d285

Please sign in to comment.