File tree 2 files changed +15
-12
lines changed
2 files changed +15
-12
lines changed Original file line number Diff line number Diff line change 11
11
strategy :
12
12
matrix :
13
13
os :
14
- - ubuntu-20 .04
15
- - windows-2019
14
+ - ubuntu-22 .04
15
+ - windows-2022
16
16
php :
17
17
- 8.2
18
18
- 8.1
27
27
- 5.4
28
28
- 5.3
29
29
steps :
30
- - uses : actions/checkout@v2
30
+ - uses : actions/checkout@v3
31
31
- uses : shivammathur/setup-php@v2
32
32
with :
33
33
php-version : ${{ matrix.php }}
43
43
runs-on : macos-12
44
44
continue-on-error : true
45
45
steps :
46
- - uses : actions/checkout@v2
46
+ - uses : actions/checkout@v3
47
47
- uses : shivammathur/setup-php@v2
48
48
with :
49
49
php-version : 8.1
@@ -53,13 +53,16 @@ jobs:
53
53
54
54
PHPUnit-hhvm :
55
55
name : PHPUnit (HHVM)
56
- runs-on : ubuntu-18 .04
56
+ runs-on : ubuntu-22 .04
57
57
continue-on-error : true
58
58
steps :
59
- - uses : actions/checkout@v2
60
- - uses : azjezz/setup-hhvm@v1
59
+ - uses : actions/checkout@v3
60
+ - run : cp `which composer` composer.phar && ./composer.phar self-update --2.2 # downgrade Composer for HHVM
61
+ - name : Run hhvm composer.phar install
62
+ uses : docker://hhvm/hhvm:3.30-lts-latest
61
63
with :
62
- version : lts-3.30
63
- - run : composer self-update --2.2 # downgrade Composer for HHVM
64
- - run : hhvm $(which composer) install
65
- - run : hhvm vendor/bin/phpunit
64
+ args : hhvm composer.phar install
65
+ - name : Run hhvm vendor/bin/phpunit
66
+ uses : docker://hhvm/hhvm:3.30-lts-latest
67
+ with :
68
+ args : hhvm vendor/bin/phpunit
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ public function connectionToTcpServerShouldFailIfFileDescriptorsAreExceeded()
109
109
}
110
110
111
111
// each file descriptor takes ~600 bytes of memory, so skip test if this would exceed memory_limit
112
- if ($ ulimit * 600 > $ memory ) {
112
+ if ($ ulimit * 600 > $ memory || $ ulimit > 100000 ) {
113
113
$ this ->markTestSkipped ('Test requires ~ ' . round ($ ulimit * 600 / 1024 / 1024 ) . '/ ' . round ($ memory / 1024 / 1024 ) . ' MiB memory with ' . $ ulimit . ' file descriptors ' );
114
114
}
115
115
You can’t perform that action at this time.
0 commit comments