{"id":13625619,"url":"https://github.com/mattallty/jest-github-action","last_synced_at":"2025-03-31T07:09:40.665Z","repository":{"id":40376193,"uuid":"257139472","full_name":"mattallty/jest-github-action","owner":"mattallty","description":"Jest action adding checks with annotations to your pull requests and coverage table as comments","archived":false,"fork":false,"pushed_at":"2023-01-04T14:59:51.000Z","size":1351,"stargazers_count":150,"open_issues_count":31,"forks_count":50,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-25T00:25:07.418Z","etag":null,"topics":["action","actions","github-actions","jest","test","testing"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mattallty.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-20T01:21:36.000Z","updated_at":"2024-10-08T05:04:28.000Z","dependencies_parsed_at":"2023-01-04T12:20:37.851Z","dependency_job_id":null,"html_url":"https://github.com/mattallty/jest-github-action","commit_stats":{"total_commits":40,"total_committers":6,"mean_commits":6.666666666666667,"dds":0.125,"last_synced_commit":"12c8c9a48ae4543fdcf5faa4d126e922d69783a8"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":"actions/javascript-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattallty%2Fjest-github-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattallty%2Fjest-github-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattallty%2Fjest-github-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattallty%2Fjest-github-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattallty","download_url":"https://codeload.github.com/mattallty/jest-github-action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246429487,"owners_count":20775807,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["action","actions","github-actions","jest","test","testing"],"created_at":"2024-08-01T21:01:58.441Z","updated_at":"2025-03-31T07:09:40.636Z","avatar_url":"https://github.com/mattallty.png","language":"TypeScript","readme":"# Jest Github Action\n\nMain features:\n\n- Add status checks with code annotations to your pull requests\n- Comment your pull requests with code coverage table (if tests succeeded)\n\n## Coverage example\n\n![Coverage](assets/coverage.png)\n\n## Check annotations example\n\n![Fail](assets/fail.png)\n\n## Usage\n\nYou can now consume the action by referencing the v1 branch\n\n```yaml\nuses: mattallty/jest-github-action@v1\nenv:\n  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n\n### Overriding the test command\n\nBy default, this action will execute `npm test` to run your tests.\nYou can change this behavior by providing a custom `test-command` like this:\n\n```yaml\nuses: mattallty/jest-github-action@v1\nenv:\n  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\nwith:\n  # this is just an example, this could be any command that will trigger jest\n  test-command: \"yarn test\"\n```\n\n### Running tests only on changed files\n\n```yaml\nuses: mattallty/jest-github-action@v1\nenv:\n  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\nwith:\n  # Runs tests related to the changes since the base branch of your pull request\n  # Default to false if not set\n  changes-only: true\n```\n\n### Silencing the code coverage comment\n\n```yaml\nuses: mattallty/jest-github-action@v1\nenv:\n  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\nwith:\n  # To avoid reporting code coverage, set this variable to false\n  coverage-comment: false\n```\n\n### Running tests in a subdirectory\n\nFor running tests in folders other than root, supply a working-directory.\n\n```yaml\nuses: mattallty/jest-github-action@v1\nenv:\n  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\nwith:\n  working-directory: \"frontend\"\n```\n\n\nSee the [actions tab](https://github.com/mattallty/jest-github-action/actions) for runs of this action! :rocket:\n","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattallty%2Fjest-github-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattallty%2Fjest-github-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattallty%2Fjest-github-action/lists"}