GitHub Action that executes unit tests present anywhere within a golang based GitHub repository and reports results including coverage metrics
jobs:
test:
steps:
- name: Test
uses: open-turo/actions-go/test@v1
with:
## example value for github-token provided below
github-token: ${{ secrets.GITHUB_TOKEN }}
parameter | description | required | default |
---|---|---|---|
checkout-repo | Perform checkout as first step of action | false |
true |
github-token | GitHub token that can checkout the consumer repository. e.g. 'secrets.GITHUB_TOKEN' | true |
This action is an composite
action.
go test -cover ./...
- By default, this action will perform actions/checkout as its first step.