GitHub Action
drill4j-report-github-action
v0.5
Latest version
This GitHub Action is used to generate a report on the percentage of application coverage per commit in a GitHub pull request.
To use this action, follow these steps:
- Obtain a GitHub API token. You can learn how to do this from the official GitHub documentation.
- Set the token as a project or organization variable. Instructions on how to do this can be found in the official GitHub documentation.
- 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.