Skip to content

Release V1.3

Compare
Choose a tag to compare
@anuraag016 anuraag016 released this 18 Aug 04:57
· 11 commits to master since this release

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 off UI 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
🔴 file4 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.
  • Fixes some bugs