File tree Expand file tree Collapse file tree 7 files changed +63
-45
lines changed Expand file tree Collapse file tree 7 files changed +63
-45
lines changed Original file line number Diff line number Diff line change 1
1
/.gitattributes export-ignore
2
2
/.gitignore export-ignore
3
- /.scrutinizer.yml export-ignore
4
- /.travis.yml export-ignore
5
3
/build.xml export-ignore
6
4
/phpunit.xml export-ignore
7
5
/README.md export-ignore
Original file line number Diff line number Diff line change
1
+ on :
2
+ - " pull_request"
3
+ - " push"
4
+
5
+ name : " unit"
6
+
7
+ permissions :
8
+ contents : " read"
9
+
10
+ jobs :
11
+ tests :
12
+ name : " Tests"
13
+ runs-on : " ubuntu-latest"
14
+
15
+ strategy :
16
+ fail-fast : false
17
+ matrix :
18
+ php-version :
19
+ - " 7.4"
20
+ - " 8.1"
21
+ - " 8.2"
22
+ - " 8.3"
23
+
24
+ steps :
25
+ - name : " Checkout"
26
+ uses : " actions/checkout@v3"
27
+
28
+ - name : " Install PHP with extensions"
29
+ uses : " shivammathur/setup-php@v2"
30
+ with :
31
+ php-version : " ${{ matrix.php-version }}"
32
+ php_extensions : " xdebug"
33
+
34
+ - name : " Cache dependencies installed with Composer"
35
+ uses : " actions/cache@v2"
36
+ with :
37
+ path : " ~/.composer/cache"
38
+ key : " php${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.json') }}"
39
+ restore-keys : " php${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-"
40
+
41
+ - name : " Install dependencies with Composer"
42
+ run : " composer update --no-ansi --no-interaction --no-progress"
43
+
44
+ - name : " Run tests with PHPUnit"
45
+ run : " bin/phing unit"
46
+
47
+ - name : " Upload to Codecov"
48
+ uses : " codecov/codecov-action@v2"
49
+ with :
50
+ files : " test/coverage.xml"
51
+ verbose : true
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 22
22
<a href =" https://packagist.org/packages/setbased/exception " ><img src =" https://poser.pugx.org/setbased/exception/v/stable " alt =" Latest Stable Version " /></a ><br />
23
23
</td >
24
24
<td >
25
- <a href =" https://travis-ci.org /SetBased/php-exception " ><img src =" https://travis-ci.org /SetBased/php-exception. svg?branch=master " alt =" Build Status " /></a ><br />
26
- <a href =" https://scrutinizer-ci.com/g /SetBased/php-exception/?branch=master " ><img src =" https://scrutinizer-ci.com/g /SetBased/php-exception/badges/coverage.png?b= master " alt =" Code Coverage " /></a >
25
+ <a href =" https://github.com /SetBased/php-exception/actions/workflows/unit.yml " ><img src =" https://github.com /SetBased/php-exception/actions/workflows/unit.yml/badge. svg " alt =" Build Status " /></a ><br />
26
+ <a href =" https://codecov.io/gh /SetBased/php-exception " ><img src =" https://codecov.io/gh /SetBased/php-exception/branch/ master/graph/badge.svg " alt =" Code Coverage " /></a >
27
27
</td >
28
28
<td >
29
29
<a href =" https://scrutinizer-ci.com/g/SetBased/php-exception/?branch=master " ><img src =" https://scrutinizer-ci.com/g/SetBased/php-exception/badges/quality-score.png?b=master " alt =" Scrutinizer Code Quality " /></a >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<project name =" php-exception" default =" build" basedir =" ." >
3
- <target name =" build" >
4
- </target >
5
-
6
3
<!-- Run composer update -->
7
4
<target name =" update" >
8
5
<exec executable =" composer" checkreturn =" true" passthru =" true" >
20
17
21
18
<!-- Runs all unit tests -->
22
19
<target name =" unit" >
23
- <exec command =" bin/phpunit" passthru =" true" checkreturn =" true" />
20
+ <exec executable =" bin/phpunit" passthru =" true" checkreturn =" true" />
24
21
</target >
22
+
23
+ <target name =" build" depends =" update,unit" />
25
24
</project >
Original file line number Diff line number Diff line change 9
9
"require" : {
10
10
"php" : " >=7.4"
11
11
},
12
+ "minimum-stability" : " dev" ,
13
+ "prefer-stable" : true ,
12
14
"require-dev" : {
13
- "phing/phing" : " ^2.16.3 " ,
15
+ "phing/phing" : " ^3.0.0-RC4 " ,
14
16
"phpunit/phpunit" : " ^9.5.0"
15
17
},
16
18
"autoload" : {
25
27
},
26
28
"config" : {
27
29
"bin-dir" : " bin/" ,
28
- "sort-packages" : true
30
+ "sort-packages" : true ,
31
+ "allow-plugins" : {
32
+ "phing/phing-composer-configurator" : true
33
+ }
29
34
}
30
35
}
You can’t perform that action at this time.
0 commit comments