File tree Expand file tree Collapse file tree 5 files changed +38
-29
lines changed Expand file tree Collapse file tree 5 files changed +38
-29
lines changed Original file line number Diff line number Diff line change 1
1
/.gitattributes export-ignore
2
+ /.github /workflows / 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
/tests / 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
+ runs-on : ${{ matrix.os }}
10
+ strategy :
11
+ matrix :
12
+ os :
13
+ - ubuntu-20.04
14
+ - windows-2019
15
+ php :
16
+ - 7.4
17
+ - 7.3
18
+ - 7.2
19
+ - 7.1
20
+ - 7.0
21
+ steps :
22
+ - uses : actions/checkout@v2
23
+ - name : Setup PHP
24
+ uses : shivammathur/setup-php@v2
25
+ with :
26
+ php-version : ${{ matrix.php }}
27
+ extensions : zlib
28
+ coverage : xdebug
29
+ - run : composer install
30
+ - run : vendor/bin/phpunit --coverage-text
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- # clue/reactphp-zlib [ ![ Build Status] ( https://travis-ci.org/clue/reactphp-zlib.svg?branch=master )] ( https://travis-ci.org/clue/reactphp-zlib )
1
+ # clue/reactphp-zlib
2
+
3
+ [ ![ CI status] ( https://github.com/clue/reactphp-zlib/workflows/CI/badge.svg )] ( https://github.com/clue/reactphp-zlib/actions )
2
4
3
5
Streaming zlib compressor and decompressor for [ ReactPHP] ( https://reactphp.org/ ) ,
4
6
supporting compression and decompression of GZIP, ZLIB and raw DEFLATE formats.
Original file line number Diff line number Diff line change @@ -15,6 +15,10 @@ public function setUp()
15
15
16
16
public function testCompressEmpty ()
17
17
{
18
+ if (DIRECTORY_SEPARATOR === '\\' ) {
19
+ $ this ->markTestSkipped ('Not supported on Windows ' );
20
+ }
21
+
18
22
$ os = DIRECTORY_SEPARATOR === '\\' ? "\x0a" : "\x03" ; // NTFS(0x0a) or UNIX (0x03)
19
23
$ this ->compressor ->on ('data ' , $ this ->expectCallableOnceWith ("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00" . $ os . "\x03\x00" . "\x00\x00\x00\x00\x00\x00\x00\x00" ));
20
24
$ this ->compressor ->on ('end ' , $ this ->expectCallableOnce ());
You can’t perform that action at this time.
0 commit comments