{"id":28908382,"url":"https://github.com/codefiesta/swift-coverage-action","last_synced_at":"2026-05-04T22:43:58.222Z","repository":{"id":297364369,"uuid":"996506858","full_name":"codefiesta/swift-coverage-action","owner":"codefiesta","description":"A Github action that parses a swift test coverage report and outputs a percentage for displaying a badge.","archived":false,"fork":false,"pushed_at":"2025-06-20T16:48:40.000Z","size":1248,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-04T22:43:36.846Z","etag":null,"topics":["continuous-integration","coverage-reports","coverage-testing","github-actions","swift","swift-package-manager"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/codefiesta.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2025-06-05T03:46:02.000Z","updated_at":"2025-06-20T16:51:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"bf2d6cc7-942d-4565-8a22-b956d0247636","html_url":"https://github.com/codefiesta/swift-coverage-action","commit_stats":null,"previous_names":["codefiesta/swift-coverage-action"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/codefiesta/swift-coverage-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codefiesta%2Fswift-coverage-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codefiesta%2Fswift-coverage-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codefiesta%2Fswift-coverage-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codefiesta%2Fswift-coverage-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codefiesta","download_url":"https://codeload.github.com/codefiesta/swift-coverage-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codefiesta%2Fswift-coverage-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32628211,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"last_error":"SSL_read: 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":["continuous-integration","coverage-reports","coverage-testing","github-actions","swift","swift-package-manager"],"created_at":"2025-06-21T16:09:09.250Z","updated_at":"2026-05-04T22:43:58.216Z","avatar_url":"https://github.com/codefiesta.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Swift 6.0+](https://img.shields.io/badge/Swift-6.0%2B-tomato.svg)\n[![License: MIT](https://img.shields.io/badge/License-MIT-indigo.svg)](https://opensource.org/licenses/MIT)\n\n# Swift Coverage Action\n\nSwift Coverage Action is a simple Github action that parses a swift test coverage report and outputs a percentage for displaying a badge.\n\n## Usage\nThe following is an example of how to setup a Github action that extracts the percentage output from the Swift Coverage Action and pushes the output (code coverage percentage) into the [Dynamic Badges Action](https://github.com/marketplace/actions/dynamic-badges).\n\n```yml\nname: Swift Coverage\n\njobs:\n  build:\n    runs-on: macos-15\n    steps:\n    - uses: actions/checkout@v4\n    - name: Build\n      run: swift build -v\n    - name: Test\n      run: swift test --enable-code-coverage\n    - id: coverage\n      uses: codefiesta/swift-coverage-action@0.0.1\n    - name: badge\n      # Only run the badge update if we are pushing to main\n      if: github.ref == 'refs/heads/main'\n      uses: schneegans/dynamic-badges-action@v1.7.0\n      with:\n        auth: ${{secrets.GIST_SECRET}}\n        gistID: \u003cGIST_ID\u003e\n        filename: coverage.json\n        label: Coverage\n        message: ${{steps.coverage.outputs.percentage}}%\n        color: white\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodefiesta%2Fswift-coverage-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodefiesta%2Fswift-coverage-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodefiesta%2Fswift-coverage-action/lists"}