File tree Expand file tree Collapse file tree 13 files changed +238
-129
lines changed Expand file tree Collapse file tree 13 files changed +238
-129
lines changed Original file line number Diff line number Diff line change 1+ name : " PHPUnit tests"
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches :
7+ - " master"
8+
9+ jobs :
10+ phpunit :
11+ name : " PHPUnit tests"
12+
13+ runs-on : " ubuntu-latest"
14+
15+ strategy :
16+ matrix :
17+ dependencies :
18+ - " highest"
19+ php-version :
20+ - " 7.2"
21+ - " 7.3"
22+ - " 7.4"
23+ - " 8.0"
24+ - " 8.1"
25+ - " 8.2"
26+ - " 8.3"
27+ - " 8.4"
28+
29+ include :
30+ - php-version : ' 7.2'
31+ dependencies : " lowest"
32+
33+ steps :
34+ - name : " Checkout"
35+ uses : " actions/checkout@v4"
36+
37+ - name : " Install PHP"
38+ uses : " shivammathur/setup-php@v2"
39+ with :
40+ coverage : " pcov"
41+ php-version : " ${{ matrix.php-version }}"
42+ ini-values : memory_limit=-1
43+ tools : composer:v2
44+ env :
45+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
46+
47+ # Fixes any pubkeys failure (add a `composer diagnose` step to debug if necessary)
48+ - name : " Composer force self-update"
49+ run : " composer self-update"
50+
51+ - name : " Install lowest dependencies"
52+ if : ${{ matrix.dependencies == 'lowest' }}
53+ run : " composer update --prefer-lowest --no-interaction --no-progress"
54+
55+ - name : " Install highest dependencies"
56+ if : ${{ matrix.dependencies == 'highest' }}
57+ run : " composer update --no-interaction --no-progress"
58+
59+ - name : " Tests (PHPUnit 9)"
60+ if : ${{ matrix.php-version <= '8.0' }}
61+ run : " vendor/bin/phpunit --configuration phpunit9.xml.dist"
62+
63+ - name : " Tests (PHPUnit 10+)"
64+ if : ${{ matrix.php-version >= '8.1' }}
65+ run : " vendor/bin/phpunit"
Original file line number Diff line number Diff line change 22composer.lock
33composer.phar
44phpunit.xml
5+ /.phpunit.result.cache
6+ /build
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3535 "psr-4" : { "Omnipay\\ Redsys\\ " : " tests/" }
3636 },
3737 "require" : {
38+ "php" : " ^7.2|^8.0" ,
3839 "omnipay/common" : " dev-address3-support"
3940 },
4041 "require-dev" : {
4142 "omnipay/tests" : " dev-address3-support" ,
42- "squizlabs/php_codesniffer" : " ^3.5"
43+ "squizlabs/php_codesniffer" : " ^3.5" ,
44+ "http-interop/http-factory-guzzle" : " ^1.1"
4345 },
4446 "suggest" : {
4547 "ext-openssl" : " Required for hashing functions to check message signatures"
4648 },
49+ "scripts" : {
50+ "test" : " phpunit" ,
51+ "check-style" : " phpcs -p --standard=PSR2 src/" ,
52+ "fix-style" : " phpcbf -p --standard=PSR2 src/"
53+ },
4754 "extra" : {
4855 "branch-alias" : {
49- "dev-master" : " 3.2 .x-dev"
56+ "dev-master" : " 3.3 .x-dev"
5057 }
5158 },
5259 "repositories" : [
5360 {
5461 "type" : " vcs" ,
55- "url" : " https://github.com/CodeDruids /omnipay-common"
62+ "url" : " https://github.com/PatronBase /omnipay-common"
5663 },
5764 {
5865 "type" : " vcs" ,
59- "url" : " https://github.com/CodeDruids /omnipay-tests"
66+ "url" : " https://github.com/PatronBase /omnipay-tests"
6067 }
6168 ],
62- "prefer-stable" : true
69+ "prefer-stable" : true ,
70+ "config" : {
71+ "allow-plugins" : {
72+ "php-http/discovery" : true
73+ }
74+ }
6375}
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
2- <phpunit backupGlobals = " false "
3- backupStaticAttributes = " false "
2+ <phpunit xmlns : xsi = " http://www.w3.org/2001/XMLSchema-instance "
3+ xsi : noNamespaceSchemaLocation = " https://schema.phpunit.de/10.5/phpunit.xsd "
44 bootstrap =" vendor/autoload.php"
5+ backupGlobals =" false"
6+ backupStaticProperties =" false"
57 colors =" true"
6- convertErrorsToExceptions =" true"
7- convertNoticesToExceptions =" true"
8- convertWarningsToExceptions =" true"
98 processIsolation =" false"
10- stopOnFailure =" false"
11- syntaxCheck =" false" >
12- <php >
13- <ini name =" date.timezone" value =" UTC" />
14- </php >
15- <testsuites >
16- <testsuite name =" Omnipay Test Suite" >
17- <directory >./tests/</directory >
18- </testsuite >
19- </testsuites >
20- <filter >
21- <whitelist >
22- <directory >./src</directory >
23- </whitelist >
24- </filter >
9+ stopOnFailure =" false" >
10+ <coverage >
11+ <report >
12+ <clover outputFile =" build/logs/clover.xml" />
13+ <html outputDirectory =" build/coverage" />
14+ <text outputFile =" build/coverage.txt" />
15+ </report >
16+ </coverage >
17+ <source restrictDeprecations =" true" restrictNotices =" true" restrictWarnings =" true" >
18+ <include >
19+ <directory suffix =" .php" >src/</directory >
20+ </include >
21+ </source >
22+ <testsuites >
23+ <testsuite name =" Omnipay Test Suite" >
24+ <directory >tests</directory >
25+ </testsuite >
26+ </testsuites >
27+ <logging >
28+ <junit outputFile =" build/report.junit.xml" />
29+ </logging >
2530</phpunit >
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3+ xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9.6/phpunit.xsd"
4+ bootstrap =" vendor/autoload.php"
5+ backupGlobals =" false"
6+ backupStaticAttributes =" false"
7+ colors =" true"
8+ verbose =" true"
9+ convertErrorsToExceptions =" true"
10+ convertNoticesToExceptions =" true"
11+ convertWarningsToExceptions =" true"
12+ processIsolation =" false"
13+ stopOnFailure =" false" >
14+ <coverage >
15+ <include >
16+ <directory suffix =" .php" >src/</directory >
17+ </include >
18+ <report >
19+ <clover outputFile =" build/logs/clover.xml" />
20+ <html outputDirectory =" build/coverage" />
21+ <text outputFile =" build/coverage.txt" />
22+ </report >
23+ </coverage >
24+ <testsuites >
25+ <testsuite name =" Omnipay Test Suite" >
26+ <directory >tests</directory >
27+ </testsuite >
28+ </testsuites >
29+ <logging >
30+ <junit outputFile =" build/report.junit.xml" />
31+ </logging >
32+ </phpunit >
You can’t perform that action at this time.
0 commit comments