File tree Expand file tree Collapse file tree 5 files changed +52
-30
lines changed Expand file tree Collapse file tree 5 files changed +52
-30
lines changed Original file line number Diff line number Diff line change 1
1
/.gitattributes export-ignore
2
+ /.github / export-ignore
2
3
/.gitignore export-ignore
3
- /.travis.yml export-ignore
4
4
/examples export-ignore
5
5
/phpunit.xml.dist export-ignore
6
6
/phpunit.xml.legacy export-ignore
Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on :
4
+ push :
5
+ pull_request :
6
+
7
+ jobs :
8
+ PHPUnit :
9
+ name : PHPUnit (PHP ${{ matrix.php }})
10
+ runs-on : ubuntu-20.04
11
+ strategy :
12
+ matrix :
13
+ php :
14
+ - 8.0
15
+ - 7.4
16
+ - 7.3
17
+ - 7.2
18
+ - 7.1
19
+ - 7.0
20
+ - 5.6
21
+ - 5.5
22
+ - 5.4
23
+ - 5.3
24
+ steps :
25
+ - uses : actions/checkout@v2
26
+ - uses : shivammathur/setup-php@v2
27
+ with :
28
+ php-version : ${{ matrix.php }}
29
+ coverage : xdebug
30
+ - run : composer install
31
+ - run : vendor/bin/phpunit --coverage-text
32
+ if : ${{ matrix.php >= 7.3 }}
33
+ - run : vendor/bin/phpunit --coverage-text -c phpunit.xml.legacy
34
+ if : ${{ matrix.php < 7.3 }}
35
+
36
+ PHPUnit-hhvm :
37
+ name : PHPUnit (HHVM)
38
+ runs-on : ubuntu-18.04
39
+ continue-on-error : true
40
+ steps :
41
+ - uses : actions/checkout@v2
42
+ - uses : azjezz/setup-hhvm@v1
43
+ with :
44
+ version : lts-3.30
45
+ - run : hhvm $(which composer) install
46
+ - run : hhvm vendor/bin/phpunit
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
# Dns
2
2
3
- [ ![ Build Status ] ( https://travis-ci.org /reactphp/dns.svg?branch=master )] ( https://travis-ci.org /reactphp/dns )
3
+ [ ![ CI status ] ( https://github.com /reactphp/dns/workflows/CI/badge .svg )] ( https://github.com /reactphp/dns/actions )
4
4
5
5
Async DNS resolver for [ ReactPHP] ( https://reactphp.org/ ) .
6
6
@@ -431,7 +431,7 @@ $ composer require react/dns:^1.4
431
431
See also the [ CHANGELOG] ( CHANGELOG.md ) for details about version upgrades.
432
432
433
433
This project aims to run on any platform and thus does not require any PHP
434
- extensions and supports running on legacy PHP 5.3 through current PHP 7 + and
434
+ extensions and supports running on legacy PHP 5.3 through current PHP 8 + and
435
435
HHVM.
436
436
It's * highly recommended to use PHP 7+* for this project.
437
437
Original file line number Diff line number Diff line change @@ -119,6 +119,9 @@ public function testResolveInvalidRejects()
119
119
120
120
public function testResolveCancelledRejectsImmediately ()
121
121
{
122
+ // max_nesting_level was set to 100 for PHP Versions < 5.4 which resulted in failing test for legacy PHP
123
+ ini_set ('xdebug.max_nesting_level ' , 256 );
124
+
122
125
$ ex = $ this ->callback (function ($ param ) {
123
126
return ($ param instanceof \RuntimeException && $ param ->getMessage () === 'DNS query for google.com has been cancelled ' );
124
127
});
You can’t perform that action at this time.
0 commit comments