lfreleng-actions/🧪 Go Test

Runs go test with coverage and race detection support

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jul 9, 2026
License
None

Pinned Snippet

workflow.ymlSHA-pinned
uses: lfreleng-actions/go-test-action@d4a80d07f236bb91e2bf0e00fdcbbaf303938941 # v0.0.1

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
go_versionExplicit Go version to install; takes precedence over go_version_fileno""
go_version_fileFile to read the Go version from, relative to path_prefixnogo.mod
path_prefixProject directory; must resolve within the workspaceno.
coverageCollect coverage with -coverprofile: 'true' or 'false'notrue
raceEnable the race detector: 'true' or 'false'notrue
test_argsExtra go test flags; allowed characters: A-Z a-z 0-9 space . _ / = , : @ + -no""
test_targetSpace-separated package pattern(s) to test; tokens must not start with '-'; allowed characters: A-Z a-z 0-9 space . _ / -no./...
timeoutGo test timeout as a Go duration string, e.g. 10m or 1h30mno10m
make_argsWhen set, run the project's Makefile via make-action instead of the built-in 'go test' (a build+test hook for projects that must run build steps first, e.g. compiling Go plugins). Runs 'make -C <path_prefix> <make_args>'. The coverage, race, test_args, test_target and timeout inputs do not apply on this path; the Makefile controls the run. Must not include -C/--directory. Allowed characters: A-Z a-z 0-9 space . _ / = , : @ + -no""
permit_failReport test failures without failing the action: 'true' or 'false'nofalse
artifact_uploadUpload the coverage profile as an artifact; requires coverage; skips when the run produced no profilenofalse
artifact_nameArtifact name; allowed characters: A-Z a-z 0-9 . _ -nogo-coverage
namedescription
tests_passedWhether the test run passed: 'true' or 'false'
coverage_percentTotal coverage percentage from go tool cover; empty when coverage is off, 0 when the run produced no profile