Skip to content

Latest commit

 

History

History

test

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

GitHub Action Test

Description

GitHub Action that executes unit tests present anywhere within a golang based GitHub repository and reports results including coverage metrics

Description

GitHub Action that executes unit tests present anywhere within a golang based GitHub repository and reports results including coverage metrics

Inputs

name 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 ""
coverage-file

File to write coverage report to (coverprofile option in go test)

false covprofile

Inputs

| --- | --- | --- | --- | | 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 | |

Runs

This action is a composite action.

Runs

This action is a composite action.

Usage

- uses: @
  with:
    checkout-repo:
    # Perform checkout as first step of action
    #
    # Required: false
    # Default: true

    github-token:
    # GitHub token that can checkout the consumer repository. e.g. 'secrets.GITHUB_TOKEN'
    #
    # Required: true
    # Default: ""

    coverage-file:
    # File to write coverage report to (coverprofile option in go test)
    #
    # Required: false
    # Default: covprofile