This version of the action includes contributions from our awesome contributors:
-
Improves the UI of the diff comment that gets added
- Adds a status icon by comparing % diff across different coverage metrics
- Removes the
strike offUI and instead shows the % change in brackets**(-20)**
- Adds a nice header to the comment
- Adds test for the DiffChecker class
The output would look like this now
Status | File | % Stmts | % Branch | % Funcs | % Lines |
---|---|---|---|---|---|
🟢 | file1 | 100 (1) | 100 (1) | 100 (1) | 100 (1) |
🔴 | file2 | 99 (-1) | 99 (-1) | 99 (-1) | 99 (-1) |
🆕 | file3 | 100 | 100 | 100 | 100 |
🔴 |
-
Add afterSwitchCommand option that allows to run a command after switching to the default branch
- The action now supports runnning a command just after switching to base branch, this is extremely helpful in cases where there might be some packages removed in the pull request raised, in such cases there now is a possibility to re run the npm ci/npm install commands before running the jset coverage on base branch. Use
afterSwitchCommand
variable to pass a custom command to be run after switching to base branch.
- The action now supports runnning a command just after switching to base branch, this is extremely helpful in cases where there might be some packages removed in the pull request raised, in such cases there now is a possibility to re run the npm ci/npm install commands before running the jset coverage on base branch. Use
-
Fixes some bugs