{"id":20414539,"url":"https://github.com/codecov/example-scala","last_synced_at":"2025-08-31T01:38:47.970Z","repository":{"id":21034404,"uuid":"24330864","full_name":"codecov/example-scala","owner":"codecov","description":"Scala coverage example","archived":false,"fork":false,"pushed_at":"2024-03-25T18:29:31.000Z","size":65,"stargazers_count":35,"open_issues_count":1,"forks_count":24,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-08-28T12:37:32.121Z","etag":null,"topics":["coverage","scala","scoverage"],"latest_commit_sha":null,"homepage":"https://codecov.io/","language":"Scala","has_issues":false,"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/codecov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2014-09-22T14:00:30.000Z","updated_at":"2024-08-02T15:39:22.000Z","dependencies_parsed_at":"2024-03-25T19:39:15.510Z","dependency_job_id":"1aa6bcb4-e24e-433d-ab75-2069f0c78eb2","html_url":"https://github.com/codecov/example-scala","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codecov/example-scala","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codecov%2Fexample-scala","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codecov%2Fexample-scala/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codecov%2Fexample-scala/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codecov%2Fexample-scala/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codecov","download_url":"https://codeload.github.com/codecov/example-scala/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codecov%2Fexample-scala/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272929998,"owners_count":25017057,"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","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["coverage","scala","scoverage"],"created_at":"2024-11-15T06:11:00.022Z","updated_at":"2025-08-31T01:38:47.954Z","avatar_url":"https://github.com/codecov.png","language":"Scala","readme":"# [Codecov](https://codecov.io) Scala Example\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fcodecov%2Fexample-scala.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fcodecov%2Fexample-scala?ref=badge_shield)\n\n\n## Guide\n\n### GitHub Actions Setup\nYou should first get the repository upload token from [codecov](https://docs.codecov.com/docs/quick-start#step-2-get-the-repository-upload-token)\n\nAdd the following to your `.github/workflows/test.yml` file. \n```yml\nname: Test workflow\n\non: [push, pull_request]\n\njobs:\n  build:\n    runs-on: ubuntu-latest\n    name: Test scala\n    steps:\n      - uses: actions/checkout@v4\n      - uses: actions/setup-java@v4\n        with:\n          distribution: 'adopt'\n          java-version: '21'\n      - name: Run tests\n        run: sbt coverage test coverageReport\n      - uses: codecov/codecov-action@v4\n        with:\n          fail_ci_if_error: true\n          token: ${{ secrets.CODECOV_TOKEN }}\n```\n\nHere we frist checkout the code, then setup java, run the tests and generate the coverage report. Finally, we upload the report to codecov using the codecov-action.\n\nWhen all finished, you could also add a badge on readme like following.\n\n```\n[![codecov](https://codecov.io/gh/YOUR_ACCOUNT/YOUR_REPO/branch/YOUR_BRANCH/graph/badge.svg)](https://codecov.io/gh/YOUR_ACCOUNT/YOUR_REPO)\n```\n\n### Produce Coverage Reports\n\n1. Add `scoverage` to plugin list\n  - `addSbtPlugin(\"org.scoverage\" % \"sbt-scoverage\" % \"2.0.11\")` as [seen here](https://github.com/codecov/example-scala/blob/master/project/plugins.sbt#L1)\n1. Add `coverage` and `coverageReport` to `sbt`\n  - `sbt clean coverage test coverageReport` as [seen here](https://github.com/codecov/example-scala/blob/master/.travis.yml#L7)\n\n## Caveats\n### Private Repo\nRepository tokens are required for \n- (a) all private repos, \n- (b) public repos not using Travis-CI, CircleCI or AppVeyor. \n\nFind your repository token at Codecov and provide via appending `-t \u003cyour upload token\u003e` to you where you upload reports.\n\n## Links\n- [Community Boards](https://community.codecov.io)\n- [Support](https://codecov.io/support)\n- [Documentation](https://docs.codecov.io)\n\n\n## License\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fcodecov%2Fexample-scala.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fcodecov%2Fexample-scala?ref=badge_large)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodecov%2Fexample-scala","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodecov%2Fexample-scala","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodecov%2Fexample-scala/lists"}