File tree 6 files changed +53
-1504
lines changed
6 files changed +53
-1504
lines changed Original file line number Diff line number Diff line change
1
+ name : PHP
2
+
3
+ on : ["push", "pull_request"]
4
+
5
+ jobs :
6
+ build_and_test :
7
+ name : Build and test rlp with ${{ matrix.php-version }}
8
+ strategy :
9
+ matrix :
10
+ php-version : ["7.3", "7.4", "8.0"]
11
+
12
+ runs-on : ubuntu-latest
13
+
14
+ steps :
15
+ - name : Setup PHP
16
+ uses : shivammathur/setup-php@v2
17
+ with :
18
+ php-version : ${{ matrix.php-version }}
19
+
20
+ - name : PHP version
21
+ run : |
22
+ php --version
23
+
24
+ - uses : actions/checkout@v2
25
+
26
+ - name : Validate composer.json and composer.lock
27
+ run : composer validate
28
+
29
+ - name : Cache Composer packages
30
+ id : composer-cache
31
+ uses : actions/cache@v2
32
+ with :
33
+ path : vendor
34
+ key : ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
35
+ restore-keys : |
36
+ ${{ runner.os }}-php-
37
+
38
+ - name : Install dependencies
39
+ if : steps.composer-cache.outputs.cache-hit != 'true'
40
+ run : composer install --prefer-dist --no-progress --no-suggest
41
+
42
+ - name : Run test suite
43
+ run : vendor/bin/phpunit --coverage-clover=coverage.xml
44
+
45
+ - uses : codecov/codecov-action@v1
46
+ with :
47
+ token : ${{ secrets.CODECOV_TOKEN }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
# rlp
2
2
Recursive Length Prefix Encoding in PHP.
3
3
4
- [ ![ Build Status ] ( https://travis-ci.org /web3p/rlp. svg?branch=master )] ( https://travis-ci.org /web3p/rlp )
4
+ [ ![ PHP ] ( https://github.com /web3p/rlp/actions/workflows/php.yml/badge. svg )] ( https://github.com /web3p/rlp/actions/workflows/php.yml )
5
5
[ ![ codecov] ( https://codecov.io/gh/web3p/rlp/branch/master/graph/badge.svg )] ( https://codecov.io/gh/web3p/rlp )
6
6
[ ![ Licensed under the MIT License] ( https://img.shields.io/badge/License-MIT-blue.svg )] ( https://github.com/web3p/rlp/blob/master/LICENSE )
7
7
Original file line number Diff line number Diff line change 11
11
],
12
12
"minimum-stability" : " dev" ,
13
13
"require-dev" : {
14
- "phpunit/phpunit" : " ~7"
14
+ "phpunit/phpunit" : " ~7 | ~8.0 "
15
15
},
16
16
"autoload" : {
17
17
"psr-4" : {
24
24
}
25
25
},
26
26
"require" : {
27
+ "PHP" : " ^7.1 | ^8.0" ,
28
+ "ext-mbstring" : " *"
27
29
}
28
30
}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ class TestCase extends BaseTestCase
19
19
*
20
20
* @return void
21
21
*/
22
- public function setUp ()
22
+ public function setUp (): void
23
23
{
24
24
$ this ->rlp = new RLP ;
25
25
}
@@ -29,5 +29,5 @@ public function setUp()
29
29
*
30
30
* @return void
31
31
*/
32
- public function tearDown () {}
32
+ public function tearDown (): void {}
33
33
}
You can’t perform that action at this time.
0 commit comments