Skip to content

Commit

Permalink
(feat): compare to base
Browse files Browse the repository at this point in the history
  • Loading branch information
lucassabreu committed Aug 16, 2021
1 parent a9994c4 commit 9f99ed3
Show file tree
Hide file tree
Showing 8 changed files with 3,316 additions and 49 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,11 @@ jobs:
dir-prefix: /var/www/html
file: clover.example.xml
only-with-cover: true

- name: clover file to comment (clover.example.base.xml)
uses: ./.
with:
dir-prefix: /var/www/html
file: clover.example.base.xml
base-file: clover.example.xml
only-with-cover: true
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ Configuration

| Input | Description |
|-------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `file` | The location of the clover file. <br/> **Required** |
| `base-file` | The location of the clover file with a previous state of the coverage to compare |
| `dir-prefix` | Section of the file on clover report to remove <br/> Default: `github.workspace` <br/> **Required** |
| `dir-prefix-keep` | Section of the `dir-prefix` to keep when creating link to file.<br/>Example: if your php application is at "$REPO/backend", then you should set this to "backend" |
| `file` | The location of the clover file. <br/> **Required** |
| `only-with-cover` | Should only list files with at least one line covered. |
| `lang` | In which [language](https://developer.mozilla.org/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/Intl#argumento_locales) to format the numbers <br/> Default: `en-US` |

Expand Down
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ inputs:
file:
description: The location of the clover file
required: true
base-file:
description: The location of the clover file with a previous state of the coverage to compare
required: false
only-with-cover:
description: Should only list files with at least one line covered
default: false
Expand Down
63 changes: 43 additions & 20 deletions bin/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bin/index.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 9f99ed3

Please sign in to comment.