File tree 8 files changed +73
-20
lines changed
8 files changed +73
-20
lines changed Original file line number Diff line number Diff line change 21
21
- 8.0
22
22
- 8.1
23
23
- 8.2
24
+ - 8.3
25
+ include :
26
+ - phpunit : phpunit.xml
27
+ - php : 5.6
28
+ phpunit : phpunit.legacy.xml
29
+ - php : 7.0
30
+ phpunit : phpunit.legacy.xml
31
+ - php : 7.1
32
+ phpunit : phpunit.legacy.xml
33
+ - php : 7.2
34
+ phpunit : phpunit.legacy.xml
35
+ - php : 7.3
36
+ phpunit : phpunit.legacy.xml
37
+ - php : 7.4
38
+ phpunit : phpunit.legacy.xml
39
+ - php : 8.0
40
+ phpunit : phpunit.legacy.xml
41
+
24
42
steps :
25
- - uses : actions/checkout@v2
43
+ - uses : actions/checkout@v4
26
44
27
45
- name : Install PHP
28
46
uses : shivammathur/setup-php@v2
@@ -34,10 +52,10 @@ jobs:
34
52
35
53
- name : Get Composer Cache Directory
36
54
id : composer-cache
37
- run : echo "::set-output name= dir:: $(composer config cache-files-dir)"
55
+ run : echo "dir= $(composer config cache-files-dir)" >> $GITHUB_OUTPUT
38
56
39
57
- name : Cache Composer packages
40
- uses : actions/cache@v2
58
+ uses : actions/cache@v3
41
59
with :
42
60
path : ${{ steps.composer-cache.outputs.dir }}
43
61
key : php${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
47
65
run : composer install --no-plugins
48
66
49
67
- name : Run test suite
50
- run : XDEBUG_MODE=coverage ./vendor/bin/phpunit
68
+ run : XDEBUG_MODE=coverage ./vendor/bin/phpunit --configuration ${{ matrix.phpunit }}
51
69
52
70
- name : Upload coverage results to Coveralls
53
71
env :
Original file line number Diff line number Diff line change 5
5
/composer.lock
6
6
/docker-compose.yml
7
7
/.phpunit.result.cache
8
+ /.phpunit.cache
8
9
/.php-cs-fixer.cache
Original file line number Diff line number Diff line change 1
1
xml-constrcutor
2
2
===
3
3
4
+ v2.0.3 [ 2023-12-29]
5
+ ---
6
+
7
+ - Supporting of PHP 8.3.
8
+
4
9
v2.0.2 [ 2023-01-07]
5
10
---
6
11
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ xml-constructor
9
9
10
10
The array-like constructor of XML document structure.
11
11
12
- Supporting PHP from 5.6 up to 8.2 .
12
+ Supporting PHP from 5.6 up to 8.3 .
13
13
14
14
Install
15
15
---
@@ -132,7 +132,7 @@ You have to install [PHP CS Fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer)
132
132
don't use build-in Docker image:
133
133
134
134
```
135
- composer global require friendsofphp/php-cs-fixer "^3.13.0"
135
+ composer global require friendsofphp/php-cs-fixer
136
136
```
137
137
138
138
License
Original file line number Diff line number Diff line change 4
4
5
5
/**
6
6
* Configuration of code style fixer and checker for this library.
7
- * This configuration compatible with friendsofphp/php-cs-fixer "^3.13 .0".
7
+ * This configuration compatible with friendsofphp/php-cs-fixer "^3.43 .0".
8
8
*/
9
9
10
10
use PhpCsFixer \Finder ;
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <phpunit
3
+ bootstrap =" ./tests/bootstrap.php"
4
+ verbose =" true"
5
+ colors =" true" >
6
+
7
+ <testsuites >
8
+ <testsuite name =" Main Tests" >
9
+ <directory >./tests</directory >
10
+ </testsuite >
11
+ </testsuites >
12
+
13
+ <filter >
14
+ <whitelist >
15
+ <directory suffix =" .php" >./src</directory >
16
+ </whitelist >
17
+ </filter >
18
+
19
+ <logging >
20
+ <log type =" coverage-html" target =" build/coverage" />
21
+ <log type =" coverage-clover" target =" build/logs/clover.xml" />
22
+ </logging >
23
+ </phpunit >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<phpunit
3
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4
+ xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/10.5/phpunit.xsd"
3
5
bootstrap =" ./tests/bootstrap.php"
4
- verbose =" true"
5
- colors =" true" >
6
+ colors =" true"
7
+ cacheDirectory =" .phpunit.cache"
8
+ >
9
+ <coverage >
10
+ <report >
11
+ <clover outputFile =" build/logs/clover.xml" />
12
+ <html outputDirectory =" build/coverage" />
13
+ </report >
14
+ </coverage >
6
15
7
16
<testsuites >
8
17
<testsuite name =" Main Tests" >
9
18
<directory >./tests</directory >
10
19
</testsuite >
11
20
</testsuites >
12
21
13
- <filter >
14
- <whitelist >
15
- <directory suffix =" .php" >./src</directory >
16
- </whitelist >
17
- </filter >
22
+ <logging />
18
23
19
- <logging >
20
- <log type =" coverage-html" target =" build/coverage" />
21
- <log type =" coverage-clover" target =" build/logs/clover.xml" />
22
- </logging >
24
+ <source >
25
+ <include >
26
+ <directory suffix =" .php" >./src</directory >
27
+ </include >
28
+ </source >
23
29
</phpunit >
Original file line number Diff line number Diff line change 1
- FROM php:8.2 -cli-alpine
1
+ FROM php:8.3 -cli-alpine
2
2
3
3
RUN apk add --no-cache $PHPIZE_DEPS && apk add --update --no-cache linux-headers
4
4
@@ -13,6 +13,6 @@ RUN if [ ${GITHUB_OAUTH_TOKEN} != false ]; then \
13
13
;fi
14
14
RUN export COMPOSER_DISABLE_XDEBUG_WARN=1
15
15
16
- RUN composer global require friendsofphp/php-cs-fixer "^3.13.0 "
16
+ RUN composer global require friendsofphp/php-cs-fixer "^3.43.1 "
17
17
18
18
CMD ["php" , "-a" ]
You can’t perform that action at this time.
0 commit comments