GitHub Action that runs unit tests present within a JVM based (e.g. Java) GitHub repository and report test coverage metrics.
jobs:
test:
steps:
- name: Test
uses: open-turo/actions-jvm/test@v1
jobs:
test:
steps:
- name: Test
uses: open-turo/actions-jvm/test@v1
with:
gradlew-args: --debug
jobs:
test:
steps:
- name: Test
uses: open-turo/actions-jvm/test@v1
with:
gradle-task: integrationTest
parameter | description | required | default |
---|---|---|---|
checkout-repo | Perform checkout as first step of action | false |
true |
github-token | GitHub token that can checkout the repository. e.g. 'secrets.GITHUB_TOKEN' | true |
|
artifactory-username | Username to use for Artifactory access | true |
|
artifactory-auth-token | Authentication token to use with username for Artifactory access | true |
|
gradle-task | An optional string for the gradle test task to run. e.g. "integrationTest" | false |
test |
gradlew-args | An optional string of command line arguments to pass to gradlew. e.g. "--debug" | false |
This action is a composite
action.
It will run to detect and execute all unit tests in the top level of the repository and all subdirectories.
gradelw test -PartifactoryUsername=?? -PartifactoryAuthToken=??
- By default, this action will perform actions/checkout as its first step.