Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
check-circle

GitHub Action

Go Test Action

v0.0.1

Go Test Action

check-circle

Go Test Action

Run `go test` with rich summary output and annotations

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Go Test Action

uses: robherley/go-test-action@v0.0.1

Learn more about this action in robherley/go-test-action

Choose a version

go-test-action

GitHub Action for running go test ... and getting rich summary and annotations as output.

Powered by Job Summaries, this Action will generate a convenient interactive viewer for tests based on Go's test2json output.

Example

Tests are organized per package, with a brief summary of individual test results:

summary overview

Expand for per-test (with subtest) results and to view raw test output:

summary expanded

Inputs

  • moduleDirectory (optional): relative path to the directory containing the go.mod of the module you wish to test
    • Default: .
  • testArguments (optional): arguments to pass to go test, -json will be prepended
    • Default: ./...