{"id":20994072,"url":"https://github.com/tradeshift/actions-coverage-upload","last_synced_at":"2025-05-14T21:30:37.665Z","repository":{"id":38359795,"uuid":"380184491","full_name":"Tradeshift/actions-coverage-upload","owner":"Tradeshift","description":"This is actions-coverage-upload","archived":false,"fork":false,"pushed_at":"2025-04-25T13:42:16.000Z","size":2881,"stargazers_count":1,"open_issues_count":6,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-25T14:46:10.428Z","etag":null,"topics":["developer-productivity"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/Tradeshift.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":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-06-25T09:09:52.000Z","updated_at":"2025-04-02T08:14:20.000Z","dependencies_parsed_at":"2023-10-15T02:56:32.950Z","dependency_job_id":"0bb3d35f-a43a-4199-bee1-82faaffd8dc3","html_url":"https://github.com/Tradeshift/actions-coverage-upload","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tradeshift%2Factions-coverage-upload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tradeshift%2Factions-coverage-upload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tradeshift%2Factions-coverage-upload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tradeshift%2Factions-coverage-upload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tradeshift","download_url":"https://codeload.github.com/Tradeshift/actions-coverage-upload/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254230746,"owners_count":22036230,"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":["developer-productivity"],"created_at":"2024-11-19T07:16:46.412Z","updated_at":"2025-05-14T21:30:37.285Z","avatar_url":"https://github.com/Tradeshift.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `actions-coverage-upload` GitHub Action\n\n## Overview\n\n`actions-coverage-upload` is an internal GitHub Action designed to upload code coverage reports to a Backstage server. This action is compatible with multiple types of code coverage reports, including Cobertura and Jacoco, and offers optional support for mutual TLS.\n\n## Prerequisites\n\nEnsure that you are using NodeJS 16.x or higher and npm 8.x or higher before running this action.\n\n## Inputs\n\nThe action supports the following inputs:\n\n- `server`: The URL of the Backstage server where the coverage report should be uploaded.\n- `file`: The path to the coverage report file, usually in XML format.\n- `name`: The name of the service for which the coverage report is uploaded.\n- `type`: The type of code coverage report. Currently supported types are `cobertura` and `jacoco`.\n\n### Optional Inputs\n\n- `ca-cert`: CA certificate for mutual TLS.\n- `client-cert`: Client certificate for mutual TLS.\n- `client-key`: Client key for mutual TLS.\n\n## Example Usage\n\nHere is a sample GitHub Actions workflow demonstrating how to use `actions-coverage-upload`.\n\n```yaml\non: [push]\n\njobs:\n  coverage-upload:\n    runs-on: [self-hosted,ts-large-x64-docker-large]\n    steps:\n      - uses: tradeshift/actions-coverage-upload@v1\n        with:\n          server: http://backstage:7000\n          file: coverage.xml\n          name: servicename\n          type: [cobertura|jacoco]\n          # optional values for using mutual tls:\n          ca-cert: ${{ secrets.MTLS_CACERT }}\n          client-cert: ${{ secrets.MTLS_CERT }}\n          client-key: ${{ secrets.MTLS_KEY }}\n```\n\n## Build and Development\n\nTo build the project you'll need NodeJS 16.x and npm 8.x or higher:\n\n```bash\nnpm ci\nnpm run all\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftradeshift%2Factions-coverage-upload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftradeshift%2Factions-coverage-upload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftradeshift%2Factions-coverage-upload/lists"}