Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

bodyangug/drill4j-report-github-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

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/drill4j-report-github-action@v0.5
     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.