File tree Expand file tree Collapse file tree 5 files changed +74
-32
lines changed Expand file tree Collapse file tree 5 files changed +74
-32
lines changed Original file line number Diff line number Diff line change 16
16
repository : ' nunomaduro/phpinsights'
17
17
steps :
18
18
- name : Checkout
19
- uses : actions/checkout@v2
19
+ uses : actions/checkout@v3
20
20
- name : Get Release version
21
21
run : echo "RELEASE_VERSION=$(echo ${GITHUB_REF:10})" >> $GITHUB_ENV
22
22
if : ${{ env.publish == 'true' }}
Original file line number Diff line number Diff line change @@ -86,12 +86,23 @@ jobs:
86
86
fail-fast : false
87
87
matrix :
88
88
os : [ubuntu-latest]
89
- version : ['^9.0', '^8.0']
89
+ version : ['^10.0', '^ 9.0', '^8.0']
90
90
php : ['7.4', '8.0', '8.1', '8.2']
91
91
composer-version : [v2]
92
+ include :
93
+ - version : ' ^10.0'
94
+ phpunit : ' ^10.0'
95
+ - version : ' ^9.0'
96
+ phpunit : ' ^9.0'
97
+ - version : ' ^8.0'
98
+ phpunit : ' ^9.0'
92
99
exclude :
93
100
- version : ' ^9.0'
94
101
php : ' 7.4'
102
+ - version : ' ^10.0'
103
+ php : ' 7.4'
104
+ - version : ' ^10.0'
105
+ php : ' 8.0'
95
106
name : " Laravel:${{ matrix.version }} - PHP${{ matrix.php }} - Composer ${{ matrix.composer-version }}"
96
107
97
108
steps :
@@ -127,9 +138,9 @@ jobs:
127
138
composer config prefer-stable true
128
139
composer config minimum-stability dev
129
140
continue-on-error : ${{ env.allow_failure == 'true' }}
130
- - name : Require phpunit:^9
141
+ - name : Require phpunit
131
142
working-directory : ./project
132
- run : composer require --dev phpunit/phpunit:^9.0 --update-with-dependencies -n --ansi
143
+ run : composer require --dev phpunit/phpunit:${{ matrix.phpunit }} --update-with-dependencies -n --ansi
133
144
continue-on-error : ${{ env.allow_failure == 'true' }}
134
145
- name : Allow plugin
135
146
working-directory : ./project
Original file line number Diff line number Diff line change 14
14
php : ['7.4', '8.0', '8.1', '8.2']
15
15
dependency-version : [prefer-lowest, prefer-stable]
16
16
composer-version : [ v2 ]
17
+ include :
18
+ - php : ' 8.2'
19
+ phpunit : ' ^10.0'
20
+ - php : ' 8.1'
21
+ phpunit : ' ^10.0'
22
+ - php : ' 8.0'
23
+ phpunit : ' ^9.0'
24
+ - php : ' 7.4'
25
+ phpunit : ' ^9.0'
17
26
exclude :
18
27
- dependency-version : prefer-lowest
19
28
php : ' 8.0'
43
52
44
53
- name : Install Composer dependencies
45
54
run : composer update --${{ matrix.dependency-version }} --ansi --no-interaction --prefer-dist
46
- - name : Unit Tests
55
+
56
+ - name : Force PHPUnit version
57
+ run : composer require --dev phpunit/phpunit:${{ matrix.phpunit }} --update-with-dependencies -n --ansi
58
+
59
+ - name : Unit Tests via PHPUnit 9
60
+ if : matrix.phpunit == '^9.0'
61
+ run : vendor/bin/phpunit --color=always -c phpunit9.xml
62
+
63
+ - name : Unit Tests via PHPUnit 10
64
+ if : matrix.phpunit == '^10.0'
47
65
run : vendor/bin/phpunit --color=always
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
- <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
- backupGlobals =" false"
4
- backupStaticAttributes =" false"
5
- beStrictAboutTestsThatDoNotTestAnything =" true"
6
- beStrictAboutOutputDuringTests =" true"
7
- bootstrap =" vendor/squizlabs/php_codesniffer/tests/bootstrap.php"
8
- colors =" true"
9
- convertErrorsToExceptions =" true"
10
- convertNoticesToExceptions =" true"
11
- convertWarningsToExceptions =" true"
12
- failOnRisky =" true"
13
- failOnWarning =" true"
14
- processIsolation =" false"
15
- stopOnError =" false"
16
- stopOnFailure =" false"
17
- verbose =" true"
18
- xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9.3/phpunit.xsd" >
19
- <coverage >
20
- <include >
21
- <directory suffix =" .php" >./src</directory >
22
- </include >
23
- </coverage >
24
- <testsuites >
25
- <testsuite name =" Test Suite" >
26
- <directory suffix =" Test.php" >./tests</directory >
27
- </testsuite >
28
- </testsuites >
2
+ <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" backupGlobals =" false" beStrictAboutTestsThatDoNotTestAnything =" true" beStrictAboutOutputDuringTests =" true" bootstrap =" vendor/squizlabs/php_codesniffer/tests/bootstrap.php" colors =" true" failOnRisky =" true" failOnWarning =" true" processIsolation =" false" stopOnError =" false" stopOnFailure =" false" xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/10.0/phpunit.xsd" cacheDirectory =" .phpunit.cache" backupStaticProperties =" false" >
3
+ <coverage >
4
+ <include >
5
+ <directory suffix =" .php" >./src</directory >
6
+ </include >
7
+ </coverage >
8
+ <testsuites >
9
+ <testsuite name =" Test Suite" >
10
+ <directory suffix =" Test.php" >./tests</directory >
11
+ </testsuite >
12
+ </testsuites >
29
13
</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
+ backupGlobals =" false"
4
+ backupStaticAttributes =" false"
5
+ beStrictAboutTestsThatDoNotTestAnything =" true"
6
+ beStrictAboutOutputDuringTests =" true"
7
+ bootstrap =" vendor/squizlabs/php_codesniffer/tests/bootstrap.php"
8
+ colors =" true"
9
+ convertErrorsToExceptions =" true"
10
+ convertNoticesToExceptions =" true"
11
+ convertWarningsToExceptions =" true"
12
+ failOnRisky =" true"
13
+ failOnWarning =" true"
14
+ processIsolation =" false"
15
+ stopOnError =" false"
16
+ stopOnFailure =" false"
17
+ verbose =" true"
18
+ xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9.3/phpunit.xsd" >
19
+ <coverage >
20
+ <include >
21
+ <directory suffix =" .php" >./src</directory >
22
+ </include >
23
+ </coverage >
24
+ <testsuites >
25
+ <testsuite name =" Test Suite" >
26
+ <directory suffix =" Test.php" >./tests</directory >
27
+ </testsuite >
28
+ </testsuites >
29
+ </phpunit >
You can’t perform that action at this time.
0 commit comments