-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 562faa8
Showing
5 changed files
with
1,652 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
vendor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
## phpunit-github-actions-printer | ||
|
||
> There's a zero-config way to achieve this at [mheap/phpunit-matcher-action](https://github.com/mheap/phpunit-matcher-action) | ||
This is a PHPUnit printer that uses the `::error` and `::warning` functionality of GitHub Actions to add annotiations for failing test runs. It's main differentiator to the above is that it supports adding warnings in addition to errors. | ||
|
||
## Usage | ||
|
||
Add this printer to your project | ||
|
||
```bash | ||
composer require --dev mheap/phpunit-github-actions-printer | ||
``` | ||
|
||
When you run your tests, specify `mheap\GithubActionsReporter\Printer` as the printer to use | ||
|
||
```bash | ||
./vendor/bin/phpunit --printer mheap\\GithubActionsReporter\\Printer /path/to/tests | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"name": "mheap/phpunit-github-actions-printer", | ||
"description": "PHPUnit Printer for adding test failures as annotations on GitHub Actions", | ||
"type": "library", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Michael Heap", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"autoload": { | ||
"psr-4": { | ||
"mheap\\GithubActionsReporter\\": "src" | ||
} | ||
}, | ||
"require": {}, | ||
"require-dev": { | ||
"phpunit/phpunit": "^8" | ||
} | ||
} |
Oops, something went wrong.