Skip to content
info

GitHub Action

drill4j-report-github-action

v0.5 Latest version

drill4j-report-github-action

info

drill4j-report-github-action

Report test-coverage by Drill4J

Installation

Copy and paste the following snippet into your .yml file.

              

- name: drill4j-report-github-action

uses: bodyangug/[email protected]

Learn more about this action in bodyangug/drill4j-report-github-action

Choose a version

Drill4J Report GitHub Action

Project Overview

This GitHub Action is used to generate a report on the percentage of application coverage per commit in a GitHub pull request.

Usage

To use this action, follow these steps:

  1. Obtain a GitHub API token. You can learn how to do this from the official GitHub documentation.
  2. Set the token as a project or organization variable. Instructions on how to do this can be found in the official GitHub documentation.
  3. Add the following lines to your GitHub workflow after the build:
   - name: Drill4J Github Action
     uses: bodyangug/[email protected]
     with:
        group-id: ${{ matrix.config.drill-group-id }}
        agent-id: ${{ matrix.config.drill-api-agent-id }}
        drill-address: ${{ matrix.config.drill-admin-address }}
        repo-token: ${{ secrets.TOKEN }}
        current-branch: ${{ github.event.pull_request.head.ref }}
        current-vcs-ref: ${{ github.event.pull_request.head.sha }}
        base-branch: ${{ github.event.pull_request.base.ref }}
        base-vcs-ref: ${{ github.event.pull_request.base.sha }}

In the above code, secrets.TOKEN is the token you created in the previous steps.