Skip to content

A GitHub Action to install and configure the Testspace client used for publishing test content

License

Notifications You must be signed in to change notification settings

testspace-com/setup-testspace

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Testspace Action

Testspace client Setup JavaScript Action

A GitHub Action used to install and configure the Testspace client used for publishing test content to Testspace.com.

Usage

Setting up the Testspace client:

uses: testspace-com/setup-testspace@v1
with:
  domain: ${{ github.repository_owner }}  # Testspace subdomain defaults to GitHub org
  token: ${{ secrets.TESTSPACE_TOKEN }} # optional, only required for private repos

Input

The Testspace client action requires a domain and optionally a token for pushing content.

  • Testspace domain is the organizational name (subdomain) used when creating the account along with .testspace.com. The .testspace.com string is optional.
  • Testspace token is required when using a private repo.

Example

The following hello world type of example:

name: hello
on:
  push:
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
        with:
          fetch-depth: 50
      - uses: testspace-com/setup-testspace@v1
        with:
          domain: ${{github.repository_owner}}
      - name: Push test results
        run: |
          testspace results.xml
        if: always()

For more information on Publishing test results refer to the help Overview on publishing.

Contributing

Contributions are encouraged following the Contribution Guide.

License

This code is released under the MIT License.