{"id":21381341,"url":"https://github.com/betrybe/stryker-evaluator-action","last_synced_at":"2025-03-16T10:44:00.346Z","repository":{"id":42832111,"uuid":"265414395","full_name":"betrybe/stryker-evaluator-action","owner":"betrybe","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-25T17:41:21.000Z","size":482,"stargazers_count":0,"open_issues_count":15,"forks_count":0,"subscribers_count":37,"default_branch":"master","last_synced_at":"2025-03-13T03:45:48.826Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/betrybe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-20T01:29:04.000Z","updated_at":"2023-01-31T18:12:19.000Z","dependencies_parsed_at":"2023-02-05T13:02:21.280Z","dependency_job_id":null,"html_url":"https://github.com/betrybe/stryker-evaluator-action","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betrybe%2Fstryker-evaluator-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betrybe%2Fstryker-evaluator-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betrybe%2Fstryker-evaluator-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betrybe%2Fstryker-evaluator-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/betrybe","download_url":"https://codeload.github.com/betrybe/stryker-evaluator-action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243857996,"owners_count":20359259,"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":[],"created_at":"2024-11-22T10:45:42.344Z","updated_at":"2025-03-16T10:44:00.323Z","avatar_url":"https://github.com/betrybe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stryker-evaluator-action\n\nStryker evaluator action for Tryber projects\n\nThis action evaluate Tryber projects with [Stryker](https://www.npmjs.com/package/stryker) library.\n\n## Inputs\n\n- `pr_author_username`\n\n  **Required**\n\n  Pull Request author username.\n\n## Outputs\n\n- `result`\n\n  Stryker unit tests JSON results in base64 format.\n\n## Usage example\n\n```yml\n- name: Fetch Stryker evaluator\n  uses: actions/checkout@v2\n  with:\n    repository: betrybe/stryker-evaluator-action\n    ref: v3.1\n    token: ${{ secrets.GIT_HUB_PAT }}\n    path: .github/actions/stryker-evaluator\n\n- name: Run Stryker evaluation\n  id: evaluator\n  uses: ./.github/actions/stryker-evaluator\n  with:\n    pr_author_username: ${{ github.event.inputs.pr_author_username }}\n```\n\n## How to get result output\n```yml\n- name: Run Stryker evaluation\n  id: stryker_evaluator\n  uses: ./.github/actions/stryker-evaluator\n  with:\n    pr_author_username: ${{ github.event.inputs.pr_author_username }}\n\n- name: Next step\n  uses: another-github-action\n  with:\n    param: ${{ steps.stryker_evaluator.outputs.result }}\n```\n\n## Project constraints\n\nThe description of the requirement into `.trybe/requirements.json` must be `{FILE_NAME} mutation test` where `FILE_NAME` is the real filename without the extensions.\n\n\u003e Example: for the `fetchItem.test.js` validation the requirement description must be `fetchItem mutation test`.\n\nThe example `fetchItem.test.js` file's code:\n\n```javascript\ndescribe('Test #1' () =\u003e {\n  it('unit test1', () =\u003e {});\n  it('unit test2', () =\u003e {});\n  it('unit test3', () =\u003e {});\n});\n\ndescribe('Test #2' () =\u003e {\n  ...\n});\n\ndescribe('Test #3' () =\u003e {\n  ...\n});\n```\n\nThe `.trybe/requirements.json` file must have the following structure:\n\n```json\n{\n  \"requirements\": [{\n    \"description\": \"fetchItem mutation test\",\n    \"bonus\": false\n  }]\n}\n```\n\nEach new `.test.js` file must have an equivalent `requirement`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbetrybe%2Fstryker-evaluator-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbetrybe%2Fstryker-evaluator-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbetrybe%2Fstryker-evaluator-action/lists"}