forked from mattallty/jest-github-action
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement outputs selection of code coverage
- Loading branch information
Showing
5 changed files
with
77 additions
and
45 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 |
---|---|---|
|
@@ -63,7 +63,7 @@ uses: EkoCommunications/[email protected] | |
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
# To avoid reporting code coverage, set this variable to false | ||
# code coverage will be reported, when this parameter or coverage-artifact-save is true | ||
coverage-comment: false | ||
``` | ||
|
||
|
@@ -79,6 +79,28 @@ with: | |
working-directory: "frontend" | ||
``` | ||
|
||
### Saving code coverage results | ||
|
||
For saving tests, supply a coverage-artifact-save | ||
```yaml | ||
uses: EkoCommunications/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
# code coverage will be reported, when this parameter or coverage-comment is true | ||
coverage-artifact-save: true | ||
``` | ||
|
||
### Enabling multiple outputs support | ||
|
||
For enabling multiple outputs/file types, supply multiple-outputs | ||
```yaml | ||
uses: EkoCommunications/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
multiple-outputs: false | ||
``` | ||
|
||
See the [actions tab](https://github.com/EkoCommunications/jest-github-action/actions) for runs of this action! :stars: | ||
|
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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