You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-9Lines changed: 8 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ jobs:
23
23
steps:
24
24
- uses: actions/checkout@v2
25
25
- uses: php-actions/composer@v1 # or alternative dependency management
26
-
- uses: php-actions/phpunit@v9
26
+
- uses: php-actions/phpunit@v1
27
27
# ... then your own project steps ...
28
28
```
29
29
@@ -41,6 +41,8 @@ The following configuration options are available:
41
41
+`junit` Path to junit output file (default: `test/phpunit/_junit/junit.xml`)
42
42
+`memory` The memory limit to run your tests with (default: `512M`)
43
43
+`bootstrap` The path to the bootstrap file (default: `vendor/autoload.php`)
44
+
+`php_version` The version of PHP to use e.g. `7.4` (default: latest)
45
+
+`phpunit_version` The version of PHPUnit to use e.g. `9` or `9.4.2` (default: latest)
44
46
45
47
The syntax for passing in a custom input is the following:
46
48
@@ -53,7 +55,7 @@ jobs:
53
55
...
54
56
55
57
- name: PHPUnit tests
56
-
uses: php-actions/phpunit@v9
58
+
uses: php-actions/phpunit@v1
57
59
with:
58
60
configuration: custom/path/to/phpunit.xml
59
61
memory_limit: 256M
@@ -64,16 +66,13 @@ If you require other configurations of phpunit, please request them in the [Gith
64
66
Versions
65
67
--------
66
68
67
-
The Github Actions version numbers are in sync with the PHPUnit version. This allows you to specify which version of PHPUnit your project should run by using the @ syntax.
69
+
Previously, the Github Actions release version numbers were in sync with the PHPUnit version, but this imposed too many limitations. For the next 12 months, v7, v8 and v9 branches will still point to their existing commits, but we have reverted to v1-based Actions releases, allowing PHPUnit version number to be specified from your configuration, using the `phpunit_version` input variable.
68
70
69
-
Current versions supported by this Action:
71
+
Any PHPUnit version available from https://phar.phpunit.de/ are supported.
70
72
71
-
+ 9.*
72
-
+ 8.*
73
+
Please note the version number specified within your Action configuration must match your composer.json major version number. For example, if your composer.json requires `phpunit/phpunit 8.5.8`, you must use `phpunit_version: 8.5.8`, as major versions of PHPUnit are incompatible with each other.
73
74
74
-
Please note **the version number of the Github Action must match your composer.json major version number**. For example, if your composer.json requires `phpunit/phpunit 8.5.8`, you must use `php-actions/phpunit@v8`, as major versions of PHPUnit are incompatible with each other.
75
-
76
-
If you require a specific version that is not listed here, please request them in the [Github issue tracker](https://github.com/php-actions/phpunit/issues)
75
+
If you require a specific version that is not compatible with Github Actions for some reason, please make a request in the [Github issue tracker](https://github.com/php-actions/phpunit/issues).
77
76
78
77
If you found this repository helpful, please consider [sponsoring the developer][sponsor].
0 commit comments