Supported CI

CI tools support is still under testing. Please help to report issue if you encounter any problem.

GitHub Action

Below is a step example:

- name: Report
  uses: covergates/github-actions@v1
  with:
    report-id: "Report ID"
    report-type: "go"
    report-file: "./coverage.out"
    pull-request: "true"

Arguments:

  • report-id Report ID could be found in repository setting
  • report-type refer to Upload Command for more detail
  • report-file coverage report
  • pull-request set true to leave a comment on your pull request

Drone

Covergates supports Drone CI. The supported platforms are:

  • Linux x64
  • ARM
  • ARM x64

Below is a .drone.yml example:

kind: pipeline
name: default
steps:
  - name: upload
    image: covergates/drone-covergates
    settings:
      report_id: bt9huh223akg00dkqseg
      report: ./coverage/lcov.info
      type: lcov

To leave a comment on pull request:

kind: pipeline
name: default
steps:
  - name: upload
    image: covergates/drone-covergates
    settings:
      report_id: bt9huh223akg00dkqseg
      report: ./coverage/lcov.info
      type: lcov
      comment: true
    when:
      event:
        - pull_request

To upload report to protected repository with OAuth Token:

kind: pipeline
name: default
steps:
  - name: upload
    image: covergates/drone-covergates
    settings:
      report_id: bt9huh223akg00dkqseg
      report: ./coverage/lcov.info
      token: YOUR_OAUTH_TOKEN
      type: lcov