Skip to content

Commit 60c4f98

Browse files
authored
Merge pull request #40 from clue-labs/update-tests
Update test environment and dependencies
2 parents 1483037 + 3a4b956 commit 60c4f98

3 files changed

Lines changed: 15 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
88
PHPUnit:
99
name: PHPUnit (PHP ${{ matrix.php }})
10-
runs-on: ubuntu-22.04
10+
runs-on: ubuntu-24.04
1111
strategy:
1212
matrix:
1313
php:
@@ -27,7 +27,7 @@ jobs:
2727
- 5.4
2828
- 5.3
2929
steps:
30-
- uses: actions/checkout@v4
30+
- uses: actions/checkout@v7
3131
- uses: shivammathur/setup-php@v2
3232
with:
3333
php-version: ${{ matrix.php }}
@@ -44,10 +44,10 @@ jobs:
4444
4545
PHPUnit-hhvm:
4646
name: PHPUnit (HHVM)
47-
runs-on: ubuntu-22.04
47+
runs-on: ubuntu-24.04
4848
continue-on-error: true
4949
steps:
50-
- uses: actions/checkout@v4
50+
- uses: actions/checkout@v7
5151
- run: cp "$(which composer)" composer.phar && ./composer.phar self-update --2.2 # downgrade Composer for HHVM
5252
- name: Run hhvm composer.phar install
5353
uses: docker://hhvm/hhvm:3.30-lts-latest

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# clue/reactphp-ndjson
22

33
[![CI status](https://github.com/clue/reactphp-ndjson/actions/workflows/ci.yml/badge.svg)](https://github.com/clue/reactphp-ndjson/actions)
4-
[![installs on Packagist](https://img.shields.io/packagist/dt/clue/ndjson-react?color=blue&label=installs%20on%20Packagist)](https://packagist.org/packages/clue/ndjson-react)
54
[![code coverage](https://img.shields.io/badge/code%20coverage-100%25-success)](#tests)
5+
[![installs on Packagist](https://img.shields.io/packagist/dt/clue/ndjson-react?color=blue&label=installs%20on%20Packagist)](https://packagist.org/packages/clue/ndjson-react)
66

77
Streaming newline-delimited JSON ([NDJSON](http://ndjson.org/)) parser and encoder for [ReactPHP](https://reactphp.org/).
88

@@ -335,6 +335,14 @@ To run the test suite, go to the project root and run:
335335
vendor/bin/phpunit
336336
```
337337

338+
The test suite is set up to always ensure 100% code coverage across all
339+
supported environments. If you have the Xdebug extension installed, you can also
340+
generate a code coverage report locally like this:
341+
342+
```bash
343+
XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-text
344+
```
345+
338346
## License
339347

340348
This project is released under the permissive [MIT license](LICENSE).

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
],
1313
"require": {
1414
"php": ">=5.3",
15-
"react/stream": "^1.2"
15+
"react/stream": "^1.4"
1616
},
1717
"require-dev": {
1818
"phpunit/phpunit": "^9.6 || ^8.5 || ^5.7 || ^4.8.36",
19-
"react/event-loop": "^1.2"
19+
"react/event-loop": "^1.6"
2020
},
2121
"autoload": {
2222
"psr-4": {

0 commit comments

Comments
 (0)