Publish GHA test results

1 minute read

Use the publish-test-results action to publish test results from a GHA workflow run to CloudBees Unify. Results are displayed in the Test results tab of Run details and in the Test insights dashboard. This action is available on the GitHub Marketplace.

This action uses GitHub OIDC authentication to securely communicate with CloudBees Unify. Set permissions to id-token: write in your workflow.

Inputs

Table 1. Input details
Input name Data type Required? Description

results-path

String

Yes

The pattern, file, or directory path of the test report to convert.

test-type

String

Yes

The name of the testing tool.[1]

cloudbees-url

String

No

The CloudBees Unify URL. The default value is https://api.cloudbees.io.

[1] The testing tool name must be formatted correctly, in either all lowercase or all uppercase.

Supported testing tools

Only the testing tools listed in the table below are supported for use in this action.

Use the given test-type input format to specify a testing tool.

Table 2. Supported testing tool names and test-type format

Supported tool name

Accepted test-type input formats

lowercase

UPPERCASE

GO

go

GO

Jest

jest

JEST

JUnit

junit

JUNIT

MSTest

mstest

MSTEST

Playwright

playwright

PLAYWRIGHT

ProdPerfect

prodperfect

PRODPERFECT

Selenium

selenium

SELENIUM

TestNG

testng

TESTNG

Tosca

tosca

TOSCA

Usage example

The following is a basic example of using the action:

permissions: id-token: write contents: read steps: - name: publish GHA run test results uses: cloudbees-io-gha/publish-test-results@v2 with: test-type: junit results-path: /example-dir/my-test-results