Skip to content

Commit

Permalink
Should not fail when runs on unsupported events (#38)
Browse files Browse the repository at this point in the history
* bump all packages

* 1.0.19

* remove fails action on unsupported event

* build

* add backticks in logs

* add full changelog
  • Loading branch information
MishaKav authored Oct 20, 2022
1 parent d6b4f5e commit d6ed1d3
Show file tree
Hide file tree
Showing 9 changed files with 329 additions and 148 deletions.
192 changes: 192 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,192 @@
# Changelog of the Jest Coverage Comment

## [Jest Coverage Comment 1.0.19](https://github.com/MishaKav/jest-coverage-comment/tree/v1.0.19)

**Release Date:** 2022-10-20

#### Changes

- Fix failing the action when the event type is not `pull_request`/`push`. Now it will just post `warning` message if you try to comment (and not fail the whole action). If you just using an `output` of the action you will be able to run this action on events like `schedule`/`workflow_dispatch` etc
- Add full `CHANGELOG.md` (current file with all history). Those whos use `dependabot` now will be able to see the changes directly in the PR

## [Jest Coverage Comment 1.0.18](https://github.com/MishaKav/jest-coverage-comment/tree/v1.0.18)

**Release Date:** 2022-10-15

#### Changes

- Support multiple junitxml files

```yaml
- name: Jest coverage comment
uses: MishaKav/jest-coverage-comment@main
with:
multiple-junitxml-files: |
My-Title-1, ./coverage_1/junit.xml
My-Title-2, ./coverage_2/junit.xml
```
![image](https://user-images.githubusercontent.com/289035/195997703-95d331a3-beba-4567-831e-22d1f0e977da.png)
## [Jest Coverage Comment 1.0.17](https://github.com/MishaKav/jest-coverage-comment/tree/v1.0.17)
**Release Date:** 2022-10-15
#### Changes
- Fix errors for old junit format
old versions like 10 of `jest-junit` do not provide a summary for the `errors` field. Calculate it manually.

## [Jest Coverage Comment 1.0.16](https://github.com/MishaKav/jest-coverage-comment/tree/v1.0.16)

**Release Date:** 2022-10-13

#### Changes

- Fix error when reading coverage txt
- Improve warnings when a comment is too long
- Remove unrelevant suggestions from the warning

## [Jest Coverage Comment 1.0.15](https://github.com/MishaKav/jest-coverage-comment/tree/v1.0.15)

**Release Date:** 2022-09-10

#### Changes

- Swap branch and functions (typo)

## [Jest Coverage Comment 1.0.14](https://github.com/MishaKav/jest-coverage-comment/tree/v1.0.14)

**Release Date:** 2022-08-19

#### Changes

- Add ability to remove links from report
add new properties:
- remove-links-to-files
- remove-links-to-lines

it will significantly reduce comment length which is useful in large reports

![image](https://user-images.githubusercontent.com/289035/185572824-44782b8e-e2ef-42a3-b06a-5b16e969a9d5.png)

## [Jest Coverage Comment 1.0.13](https://github.com/MishaKav/jest-coverage-comment/tree/v1.0.13)

**Release Date:** 2022-08-10

#### Changes

- Add support for `istanbul` report (remove extra slash on folders)

## [Jest Coverage Comment 1.0.12](https://github.com/MishaKav/jest-coverage-comment/tree/v1.0.12)

**Release Date:** 2022-08-10

#### Changes

- support multiple files for mono repo projects
![image](https://user-images.githubusercontent.com/289035/183769452-99e53ad9-5205-44b7-bba6-c8d481ce5cc4.png)

## [Jest Coverage Comment 1.0.11](https://github.com/MishaKav/jest-coverage-comment/tree/v1.0.11)

**Release Date:** 2022-06-29

#### Changes

- fix changed files (when the first commit comes in `push` evnet, it fails to compare it with `head` commit)

## [Jest Coverage Comment 1.0.10](https://github.com/MishaKav/jest-coverage-comment/tree/v1.0.10)

**Release Date:** 2022-06-28

#### Changes

- remove strip colors

## [Jest Coverage Comment 1.0.9](https://github.com/MishaKav/jest-coverage-comment/tree/v1.0.9)

**Release Date:** 2022-06-17

#### Changes

- Prevent total line from being treated as folder + correct spellings
- Big thanks for @paescuj for the PR

## [Jest Coverage Comment 1.0.8](https://github.com/MishaKav/jest-coverage-comment/tree/v1.0.8)

**Release Date:** 2022-05-17

#### Changes

- Fix empty folders on changed files (the report show empty folders even they don't contain files)

## [Jest Coverage Comment 1.0.7](https://github.com/MishaKav/jest-coverage-comment/tree/v1.0.7)

**Release Date:** 2022-05-14

#### Changes

- Fix head of base commit, sometimes it fails the actions with error \
`The head commit for this ${eventName} event is not ahead of the base commit. `

## [Jest Coverage Comment 1.0.6](https://github.com/MishaKav/jest-coverage-comment/tree/v1.0.6)

**Release Date:** 2022-04-27

#### Changes

- Add comment to report when no files changed: \ _report-only-changed-files is enabled. No files were changed during this commit :)_

## [Jest Coverage Comment 1.0.5](https://github.com/MishaKav/jest-coverage-comment/tree/v1.0.5)

**Release Date:** 2022-04-23

#### Changes

- show elapsed time in minutes when it's more than 60 seconds
- If the elapsed time is more than 1 minute, it will show it in a different format (`555.0532s` > `9m 15s`), the output format will be the same as `junit.xml` (`555.0532s`).

## [Jest Coverage Comment 1.0.4](https://github.com/MishaKav/jest-coverage-comment/tree/v1.0.4)

**Release Date:** 2022-04-01

#### Changes

- Report only changed files
![image](https://user-images.githubusercontent.com/289035/161164092-6e550fa1-9c3b-4b4b-8aa8-5fac9c0b7e96.png)

## [Jest Coverage Comment 1.0.3](https://github.com/MishaKav/jest-coverage-comment/tree/v1.0.3)

**Release Date:** 2022-03-31

#### Changes

- add full coverage report

![image](https://user-images.githubusercontent.com/289035/161070343-5b417cea-f2cf-45a1-a926-bab899904548.png)

## [Jest Coverage Comment 1.0.2](https://github.com/MishaKav/jest-coverage-comment/tree/v1.0.2)

**Release Date:** 2022-03-22

#### Changes

- add support for `junit.xml`

![image](https://user-images.githubusercontent.com/289035/159386186-ae896061-d34e-47a5-8a22-5dfeb5cc20ca.png)

## [Jest Coverage Comment 1.0.1](https://github.com/MishaKav/jest-coverage-comment/tree/v1.0.1)

**Release Date:** 2022-03-21

#### Changes

- Update main Readme, use the latest `@main` version instead `@v1` in the example workflows.

## [Jest Coverage Comment 1.0.0](https://github.com/MishaKav/jest-coverage-comment/tree/v1.0.0)

**Release Date:** 2022-03-21

#### Changes

- Initial publication on GitHub. The first release of the action. The main idea based on [Pytest Coverage Comment](https://github.com/marketplace/actions/pytest-coverage-comment)
35 changes: 16 additions & 19 deletions dist/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 dist/index.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit d6ed1d3

Please sign in to comment.