{"id":21382980,"url":"https://github.com/josecfreittas/elixir-coverage-feedback-action","last_synced_at":"2025-07-01T14:10:37.098Z","repository":{"id":40000386,"uuid":"503832618","full_name":"josecfreittas/elixir-coverage-feedback-action","owner":"josecfreittas","description":"Action to run tests, check coverage, and send a feedback message to the pull request.","archived":false,"fork":false,"pushed_at":"2025-01-21T23:52:29.000Z","size":395,"stargazers_count":12,"open_issues_count":5,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-07T05:07:48.268Z","etag":null,"topics":["ci","coverage","elixir","phoenix","tests"],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/josecfreittas.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-06-15T15:57:21.000Z","updated_at":"2025-02-05T16:21:09.000Z","dependencies_parsed_at":"2023-01-11T17:21:49.702Z","dependency_job_id":"b8a3e460-8b8b-4456-a9bf-0cf265a27058","html_url":"https://github.com/josecfreittas/elixir-coverage-feedback-action","commit_stats":{"total_commits":13,"total_committers":3,"mean_commits":4.333333333333333,"dds":"0.23076923076923073","last_synced_commit":"a2162efd089f69d4909fbd85ee3e3420a1b2c3de"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/josecfreittas/elixir-coverage-feedback-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josecfreittas%2Felixir-coverage-feedback-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josecfreittas%2Felixir-coverage-feedback-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josecfreittas%2Felixir-coverage-feedback-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josecfreittas%2Felixir-coverage-feedback-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/josecfreittas","download_url":"https://codeload.github.com/josecfreittas/elixir-coverage-feedback-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josecfreittas%2Felixir-coverage-feedback-action/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262978722,"owners_count":23394016,"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":["ci","coverage","elixir","phoenix","tests"],"created_at":"2024-11-22T11:04:42.454Z","updated_at":"2025-07-01T14:10:37.048Z","avatar_url":"https://github.com/josecfreittas.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Elixir coverage feedback comment\nThis action gets the output of `mix test --cover`, treats it, and creates a feedback message in the pull request of origin. It also checks if the coverage reaches the minimum configured in the action, and exits with an error if it doesn't.\n\n![image](https://user-images.githubusercontent.com/10376340/200857131-94cb2147-d703-4965-be5c-6cd6521826da.png#gh-light-mode-only)\n![image](https://user-images.githubusercontent.com/10376340/200857627-8232b1de-fcbe-4b68-9f30-df2b89b61ccf.png#gh-dark-mode-only)\n\n## Inputs\nThe action accepts the following inputs:\n\n- `github_token` (required): GitHub token to be able to create/edit comments on PRs.\n- `coverage_threshold` (optional): Coverage threshold percentage. Default is 90.\n- `working_directory` (optional): Working directory for the Elixir project. Default is the root directory (\".\").\n\n\n## Example of a complete test workflow using the action\n`.github/workflows/test.yml`\n\n```yaml\non:\n  pull_request:\n  push:\n    branches:\n      - main\n\njobs:\n  test:\n    name: Tests \u0026 Checks\n    runs-on: ubuntu-latest\n    permissions:\n      contents: read\n      pull-requests: write\n    env:\n      MIX_ENV: test\n\n    services:\n      db:\n        image: postgres:15-alpine\n        ports: [\"5432:5432\"]\n        env:\n          POSTGRES_DB: project_test\n          POSTGRES_USER: project\n          POSTGRES_PASSWORD: mycoolpassword\n\n    steps:\n      - uses: actions/checkout@v4\n\n      - name: Setup Erlang and Elixir\n        uses: erlef/setup-beam@v1.17\n        with:\n          elixir-version: \"1.16.0-otp-26\"\n          otp-version: \"26.0\"\n\n      - name: Mix and build cache\n        uses: actions/cache@v4\n        with:\n          path: |\n            deps\n            _build\n          key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}\n          restore-keys: ${{ runner.os }}-mix-\n\n      - name: Get dependencies\n        run: mix deps.get\n\n      - name: Code analyzers\n        run: |\n          mix format --check-formatted\n          mix compile --warnings-as-errors\n\n      - name: Tests \u0026 Coverage\n        uses: josecfreittas/elixir-coverage-feedback-action@v1\n        with:\n          github_token: ${{ secrets.GITHUB_TOKEN }}\n          coverage_threshold: 80\n          # working_directory: ./your_project_directory\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosecfreittas%2Felixir-coverage-feedback-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjosecfreittas%2Felixir-coverage-feedback-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosecfreittas%2Felixir-coverage-feedback-action/lists"}