{"id":15008374,"url":"https://github.com/theomessin/action-phpcov","last_synced_at":"2026-02-17T14:31:14.736Z","repository":{"id":44006899,"uuid":"236831580","full_name":"theomessin/action-phpcov","owner":"theomessin","description":"🩺 GitHub Action to turbocharge phpunit code coverage reporting.","archived":false,"fork":false,"pushed_at":"2023-01-05T06:10:08.000Z","size":573,"stargazers_count":2,"open_issues_count":12,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-11T09:08:43.509Z","etag":null,"topics":["actions","coverage","github","php","phpunit","report"],"latest_commit_sha":null,"homepage":"https://action-phpcov.now.sh/","language":"TypeScript","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/theomessin.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-01-28T20:14:13.000Z","updated_at":"2022-08-13T13:30:05.000Z","dependencies_parsed_at":"2023-02-03T15:01:05.956Z","dependency_job_id":null,"html_url":"https://github.com/theomessin/action-phpcov","commit_stats":{"total_commits":26,"total_committers":2,"mean_commits":13.0,"dds":"0.038461538461538436","last_synced_commit":"5a6271f4363761d8eff8b1829f0c98fc57414071"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/theomessin/action-phpcov","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theomessin%2Faction-phpcov","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theomessin%2Faction-phpcov/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theomessin%2Faction-phpcov/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theomessin%2Faction-phpcov/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theomessin","download_url":"https://codeload.github.com/theomessin/action-phpcov/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theomessin%2Faction-phpcov/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29547368,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T13:00:00.370Z","status":"ssl_error","status_checked_at":"2026-02-17T12:57:14.072Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["actions","coverage","github","php","phpunit","report"],"created_at":"2024-09-24T19:17:58.421Z","updated_at":"2026-02-17T14:31:14.716Z","avatar_url":"https://github.com/theomessin.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## PHPCov GitHub Action\n\nThis action will produce a PHPUnit coverage HTML report, publish it using ZEIT Now, and enforce a minimum coverage level.\n\n### Inputs\n\n**`now_token`** __(required)__ Your ZEIT Now token - used to deploy reports.\n\n**`now_project`** _(optional)_ Which ZEIT Now project to deploy reports to.\n\n**`min_coverage`** _(optional)_ The minimum coverage to enforce (default is `50`).\n\n**`phpunit`** _(optional)_ The phpunit command (default is `./vendor/bin/phpunit`).\n\n### Outputs\n\n**`url`** The deployment URL from ZEIT Now with the coverage report.\n\n### Example usage\n\nHere's how to use this action on a PHP project such as Laravel.\nAssuming your repo has a `NOW_TOKEN` secret with your ZEIT Now token, \nall you have to do is set up PHP (with a coverage driver), \nas well as install composer dependencies.\n\n```yml\non: [push]\n\njobs:\n  main:\n    runs-on: ubuntu-latest\n    steps:\n    - uses: actions/checkout@v2\n    - uses: shivammathur/setup-php@master\n      with:\n        coverage: pcov\n        php-version: '7.4'\n        extension: dom, fileinfo, mbstring\n    - run: |\n        composer install --no-suggest --prefer-dist --optimize-autoloader\n        php -r \"file_exists('.env') || copy('.env.example', '.env');\"\n        php artisan key:generate\n    - uses: theomessin/action-phpcov\n      with:\n        min_coverage: 35\n        now_project: \"action-phpcov\"\n        now_token: ${{ secrets.NOW_TOKEN }}\n        phpunit: \"./vendor/bin/phpunit --testdox\"\n```\n\nThis will output a message such as this:\n\n```\nPHPUnit 8.5.2 by Sebastian Bergmann and contributors.\n\nExample (Tests\\Unit\\Example)\n ✔ Basic test\n\nExample (Tests\\Feature\\Example)\n ✔ Basic test\n\nTime: 160 ms, Memory: 18.00 MB\n\nOK (2 tests, 2 assertions)\n\nGenerating code coverage report in Clover XML format ... done [10 ms]\n\nGenerating code coverage report in HTML format ... done [20 ms]\n\n[Actual coverage is 44.23%. Minimum coverage is 35%]\n▰▰▰▰▰▰▰▰▰▰▰▰▰▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱▱\nYou may find a full coverage report here:\nhttps://action-phpcov.now.sh\n```\n\nIf the minimum coverage is not met, the action with fail.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheomessin%2Faction-phpcov","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheomessin%2Faction-phpcov","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheomessin%2Faction-phpcov/lists"}